Caused by: java.lang.ClassNotFoundException and java.lang.NoClassDefFoundError

101 views Asked by At
 Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.location.LocationServices" on path: DexPathList[[zip file "/data/app/~~7KBUn2lwEDhEAtW_Isu_oA==/com.valentindiring.xx-scZlLvqEbNpegW1x47tPtw==/base.apk"],nativeLibraryDirectories=[/data/app/~~7KBUn2lwEDhEAtW_Isu_oA==/com.valentindiring.xx-scZlLvqEbNpegW1x47tPtw==/lib/x86_64, /system/lib64, /system_ext/lib64]]


java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/location/LocationServices;                                                                                                    at lib.valentindiring.threeprojectscomposelibrary.screens.settings.AreaContentKt.AreaContentAfterLoadingBottomSheet(AreaContent.kt:387)

I had deinstalled the app, then clean task, rebuild. But it didn't help.

In the threeprojectscomposelibrary test app module it works! But not in the production app.

1

There are 1 answers

1
Valentin Diring On

I have found the resolution. transitive dependency!