引起:java.lang.ClassNotFoundException 和 java.lang.NoClassDefFoundError

问题描述 投票:0回答:1
 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)

我已经卸载了应用程序,然后清理任务,重建。 但这并没有帮助。

在三个项目组成库测试应用程序模块中它可以工作! 但不在生产应用程序中。

android kotlin android-studio classnotfoundexception noclassdeffounderror
1个回答
0
投票

我找到了解决办法。 传递依赖!

© www.soinside.com 2019 - 2024. All rights reserved.