无法在Andriod Studio中调试模拟器设备

时间:2019-12-19 13:15:34

标签: android-studio

当尝试将调试器连接到设备时,出现以下异常- E / AndroidRuntime:致命异常:main     流程:com.phonov1.app,PID:21290     java.lang.NoClassDefFoundError:无法解决以下问题:Lcom / google / android / gms / common / util / zzs;         com.google.android.gms.gcm.GcmTaskService.onBind(未知来源:2)         在android.app.ActivityThread.handleBindService(ActivityThread.java:3559)         在android.app.ActivityThread.access $ 1400(ActivityThread.java:199)         在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1671)         在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)      原因:java.lang.ClassNotFoundException:在路径:DexPathList [[zip文件“ /system/framework/org.apache.http.legacy”中找不到类“ com.google.android.gms.common.util.zzs” .boot.jar”,zip文件“ /data/app/com.phonov1.app-wDe_cyPHXPuLQZJyy2mKcQw==/base.apk”]、nativeLibraryDirectories=[/data/app/com.phonov1.app-wDe_cyPHXPuLQZJy2mKcQw==/lib/lib/ x86_64,/ data / app / com.phonov1.app-wDe_cyPHXPuLQZJyy2mKcQw == / base.apk!/ lib / x86_64,/ system / lib64]]]         在dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)         在java.lang.ClassLoader.loadClass(ClassLoader.java:379)         在java.lang.ClassLoader.loadClass(ClassLoader.java:312)         com.google.android.gms.gcm.GcmTaskService.onBind(未知来源:2)         在android.app.ActivityThread.handleBindService(ActivityThread.java:3559)         在android.app.ActivityThread.access $ 1400(ActivityThread.java:199)         在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1671)         在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)

擦除设备数据时,可以进行调试。但是下次启动调试器将引发以上异常。

0 个答案:

没有答案