Hi there, I have created a KMP library implementing ktor, but when I install this library in a project personal, I get the following message:
Exception in thread "main" java.lang.NoClassDefFoundError: io/ktor/client/engine/cio/CIO
, can you help me please?
g
Grégory Lureau
12/16/2022, 8:59 PM
I think it's because ktor tries to find the engine automatically. Engines are published in dedicated libraries so the main library tries to find which class of the engine is available at runtime. I presume in your case you have none, and the algorithm pick CIO as the default one maybe?