generative-ai-android icon indicating copy to clipboard operation
generative-ai-android copied to clipboard

Didn't find class "io.ktor.client.plugins.HttpTimeout"

Open akardas16 opened this issue 10 months ago • 6 comments

Description of the bug:

Ktor version --> 3.0.3

Caused by java.lang.ClassNotFoundException
Didn't find class "io.ktor.client.plugins.HttpTimeout" on path: DexPathList[[zip file "/data/app/~~hBOfgr4uWljJgwYNP3oC3w==/com.cerasus.lingusai-eCImY03hNDgbdpwpEvzBpQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~hBOfgr4uWljJgwYNP3oC3w==/com.cerasus.lingusai-eCImY03hNDgbdpwpEvzBpQ==/lib/arm64, /data/app/~~hBOfgr4uWljJgwYNP3oC3w==/com.cerasus.lingusai-eCImY03hNDgbdpwpEvzBpQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

akardas16 avatar Jan 28 '25 08:01 akardas16

@akardas16 I faced the same issue. I resulted to downgrading my Ktor version from "3.0.0" to "2.3.2" and the error disappeared

CharlesMuchogo avatar Jan 30 '25 15:01 CharlesMuchogo

Still problem exist : Version generative-ai 0.9.0 is using ktor 2.3.2 ClassNotFoundException: Didn't find class "io.ktor.client.plugins.HttpTimeout"

GeoSId avatar Mar 29 '25 09:03 GeoSId

You may try https://github.com/PatilShreyas/generative-ai-kmp/releases/tag/v0.9.0-1.1.0

PatilShreyas avatar Apr 15 '25 16:04 PatilShreyas

You may try https://github.com/PatilShreyas/generative-ai-kmp/releases/tag/v0.9.0-1.1.0

Thanks

GeoSId avatar Apr 16 '25 10:04 GeoSId

@GeoSId did u solve the problem? im on the same situation

rafton86 avatar Apr 23 '25 15:04 rafton86

@rafton86 i move to other solution with my project but take a look of the above message may you will find useful

GeoSId avatar Apr 23 '25 15:04 GeoSId

downgrading ktor-core version to 2.3.7 resolved the bug for me

Dejito avatar Jul 22 '25 18:07 Dejito