2020-05-04 19:49:13.689 13062-13062/? I/zygote64: Late-enabling -Xcheck:jni
2020-05-04 19:49:13.819 13062-13062/com.example.retrofitpractice D/ActivityThread: ActivityThread,attachApplication
2020-05-04 19:49:13.883 13062-13062/com.example.retrofitpractice D/HwFLClassLoader: get used feature list :/feature/used-list failed!
2020-05-04 19:49:13.883 13062-13062/com.example.retrofitpractice D/HwFLClassLoader: USE_FEATURE_LIST had not init!
2020-05-04 19:49:13.923 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache mCurPackageName=com.example.retrofitpractice uptimes=1049359405
2020-05-04 19:49:13.925 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache oUid null
2020-05-04 19:49:13.926 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache volumes null
2020-05-04 19:49:13.958 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.example.retrofitpractice#10131#256
2020-05-04 19:49:13.962 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache oUid 10131
2020-05-04 19:49:13.962 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache volumes null
2020-05-04 19:49:13.966 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.example.retrofitpractice#10131#0
2020-05-04 19:49:13.967 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache async read begin packageName=com.example.retrofitpractice userid=0
2020-05-04 19:49:13.967 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache pi null
2020-05-04 19:49:13.969 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache pi null
2020-05-04 19:49:13.972 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache pi null
2020-05-04 19:49:13.976 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache oUid null
2020-05-04 19:49:13.976 13062-13092/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache async read finished packageName=com.example.retrofitpractice userid=0 totalus=9770
2020-05-04 19:49:14.082 13062-13062/com.example.retrofitpractice W/zygote64: Failure to verify dex file '/data/app/com.example.retrofitpractice-3GfAziQ2ZPv6YXTYbobCmA==/base.apk': Bad method handle type 7
2020-05-04 19:49:14.104 13062-13062/com.example.retrofitpractice I/HwApiCacheMangerEx: apicache pi null
2020-05-04 19:49:14.110 13062-13062/com.example.retrofitpractice E/Minikin: Could not get cmap table size!
2020-05-04 19:49:14.131 13062-13062/com.example.retrofitpractice D/AndroidRuntime: Shutting down VM
2020-05-04 19:49:14.132 13062-13092/com.example.retrofitpractice E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
2020-05-04 19:49:14.142 13062-13062/com.example.retrofitpractice E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.retrofitpractice, PID: 13062
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.retrofitpractice/com.example.retrofitpractice.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.retrofitpractice.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.retrofitpractice-3GfAziQ2ZPv6YXTYbobCmA==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.retrofitpractice-3GfAziQ2ZPv6YXTYbobCmA==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3201)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
at android.app.ActivityThread.-wrap12(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.retrofitpractice.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.retrofitpractice-3GfAziQ2ZPv6YXTYbobCmA==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.retrofitpractice-3GfAziQ2ZPv6YXTYbobCmA==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.Instrumentation.newActivity(Instrumentation.java:1178)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3191)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
at android.app.ActivityThread.-wrap12(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Suppressed: java.io.IOException: Failed to open dex files from /data/app/com.example.retrofitpractice-3GfAziQ2ZPv6YXTYbobCmA==/base.apk because: Failure to verify dex file '/data/app/com.example.retrofitpractice-3GfAziQ2ZPv6YXTYbobCmA==/base.apk': Bad method handle type 7
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:353)
at dalvik.system.DexFile.<init>(DexFile.java:100)
at dalvik.system.DexFile.<init>(DexFile.java:74)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:374)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:337)
at dalvik.system.DexPathList.<init>(DexPathList.java:157)
at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:65)
at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:64)
at com.android.internal.os.PathClassLoaderFactory.createClassLoader(PathClassLoaderFactory.java:43)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:75)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:38)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:719)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:752)
at android.app.LoadedApk.getResources(LoadedApk.java:1005)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2489)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6497)
at android.app.ActivityThread.-wrap2(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
... 6 more
2020-05-04 19:49:14.195 13062-13062/com.example.retrofitpractice I/Process: Sending signal. PID: 13062 SIG: 9
强调一下哈,MainActivity创建项目之后就自动生成了,Manifest中也有的,然后什么都不动跑过一次,APP不会崩掉,加了Retrofit之后崩掉了
已解决,感觉我每天都有一问,跟拉锯哥视频上呈现出来的错误不太一样,但用一样的方法解决了
如果有小伙伴也在学Retrofit!!一定要跟着拉锯哥的视频走!!照做就完事了!!
D/HwFLClassLoader: USE_FEATURE_LIST had not init!
呸,百度了一下那个是华为渲染问题,不过APP崩掉的原因是活动问题,但活动又都声明注册了,没明白咋整