我正在尝试启动附近的android master,但给我这个错误

时间:2019-01-28 05:55:15

标签: java android android-studio

E / Android运行时:致命异常:主要     流程:com.esri.android.nearbyplaces,PID:28905     java.lang.NoClassDefFoundError:无法解决以下问题:Lcom / google / android / gms / common / api / Api $ zzf;         在com.google.android.gms.location.LocationServices。(未知来源:0)         在com.esri.android.nearbyplaces.places.PlacesFragment.setPresenter(PlacesFragment.java:154)         在com.esri.android.nearbyplaces.places.PlacesFragment.setPresenter(PlacesFragment.java:59)         在com.esri.android.nearbyplaces.places.PlacesPresenter。(PlacesPresenter.java:51)         在com.esri.android.nearbyplaces.places.PlacesActivity.onCreationComplete(PlacesActivity.java:224)         在com.esri.android.nearbyplaces.places.PlacesFragment.onCreate(PlacesFragment.java:90)         在android.support.v4.app.Fragment.performCreate(Fragment.java:2414)         在android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1418)         在android.support.v4.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1195)         在android.support.v4.app.FragmentTransition.calculateFragments(FragmentTransition.java:1078)         在android.support.v4.app.FragmentTransition.startTransitions(FragmentTransition.java:117)         在android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2408)         在android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366)         在android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273)         在android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3273)         在android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3229)         在android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:201)         在android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:620)         在android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178)         在android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1391)         在android.app.Activity.performStart(Activity.java:7157)         在android.app.ActivityThread.handleStartActivity(ActivityThread.java:2937)         在android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180)         在android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)         在android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)         在android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)         在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1808)         在android.os.Handler.dispatchMessage(Handler.java:106)         在android.os.Looper.loop(Looper.java:193)         在android.app.ActivityThread.main(ActivityThread.java:6669)         在java.lang.reflect.Method.invoke(本机方法)         在com.android.internal.os.RuntimeInit $ MethodAndArgsCaller.run(RuntimeInit.java:493)         在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) E / AndroidRuntime:由以下原因引起:java.lang.ClassNotFoundException:在路径:DexPathList [[zip file“ / system / framework / org]中找不到类” com.google.android.gms.common.api.Api $ zzf“ .apache.http.legacy.boot.jar”,压缩文件“ /data/app/com.esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g==/base.apk”,压缩文件“ /data/app/com.esri.android” .nearbyplaces-eCjKJ8XXItZymb7jzSdP2g == / split_lib_dependencies_apk.apk”,zip文件“ /data/app/com.esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g==//split_lib_slice_0”。 , , .nearbyplaces-eCjKJ8XXItZymb7jzSdP2g == / split_l ib_slice_5_apk.apk”,压缩文件“ /data/app/com.esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g==/split_lib_slice_6_apk.apk”,压缩文件“ /data/app/com.esri.XX.sjd7-Cyd7-CyZd7-Zyds-Cyd7s split_lib_slice_7_apk.apk”,压缩文件“ /data/app/com.esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g==/split_lib_slice_8_apk.apk”,压缩文件“ /data/app/com.esri.8-Sy2.Jri-Syy.7.ZyCyz.ZyCyz split_lib_slice_9_apk.apk“],nativeLibraryDirectories = [/ data / app / com.esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g == / lib / x86,/ system / fake-libs,/data/app/com.esri.android.nearbyplaces eCjKJ8XXItZymb7jzSdP2g == / base.apk!/ lib / x86,/data/app/com.esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g==/split_lib_dependencies_apk.apk!/lib/x86。/ data / app。附近的地方-eCjKJ8XXItZymb7jzSdP2g == / split_lib_slice_0_apk.apk!/ lib / x86,/data/app/com.esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g==//split_lib_slice_1_ap.apk/ap.k/ap.k/ap.k/ap.k/ap.k/ap.k/ap.k/ap.k/ap.apk android.nearbyplaces-eCjKJ8XXItZymb7j zSdP2g == / split_lib_slice_2_apk.apk!/ lib / x86,/data/app/com.esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g==/split_lib_slice_3_apk.apk!/lib/x86。/ data / app。附近的地方-eCjKJ8XXItZymb7jzSdP2g == / split_lib_slice_4_apk.apk!/ lib / x86,/data/app/com.esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g==//split_lib_slice_5。 android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g == / split_lib_slice_6_apk.apk!/ lib / x86,/data/app/com.esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g=//sp__lib! esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP2g == / split_lib_slice_8_apk.apk!/ lib / x86,/data/app/com.esri.android.nearbyplaces-eCjKJ8XXItZymb7jzSdP_g_lib/x! ]         在dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)         在java.lang.ClassLoader.loadClass(ClassLoader.java:379)         在java.lang.ClassLoader.loadClass(ClassLoader.java:312)             ...还有33

1 个答案:

答案 0 :(得分:0)

就我而言,当我使用Facebook Account Kit API进行电话号码身份验证时遇到此错误。我通过添加以下两个依赖关系对其进行了修复:

implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.1.0'

也许您可能需要根据正在使用的服务添加任何其他类似的依赖项。