java.lang.NoClassDefFoundError: xxx.xxx.xxx

Keywords: Java Android Linker Google

11-04 14:40:45.384 9940-9940/? W/Zygote: MzIsRooted false
11-04 14:40:45.387 9940-9940/? I/art: Late-enabling -Xcheck:jni
11-04 14:40:45.410 9940-9940/? D/ActivityThread: hoder:android.app.IActivityManager$ContentProviderHolder@23dfe031,provider,holder.
Provider:android.content.ContentProviderProxy@13879316
11-04 14:40:45.438 9940-9940/com.hna.hi D/Proxy: setHttpRequestCheckHandler
11-04 14:40:46.625 9940-9940/com.hna.hi I/art: Rejecting re-init on previously-failed class java.lang.Class<com.Your class name>
11-04 14:40:46.625 9940-9940/com.hna.hi I/art: Rejecting re-init on previously-failed class java.lang.Class<com.Your class name>
11-04 14:40:46.628 9940-9940/com.hna.hi I/art: Rejecting re-init on previously-failed class java.lang.Class<com.Your class name>
11-04 14:40:46.628 9940-9940/com.hna.hi I/art: Rejecting re-init on previously-failed class java.lang.Class<com.Your class name>
11-04 14:40:46.633 9940-9940/com.hna.hi I/MultiDex: VM with version 2.1.0 has multidex support
11-04 14:40:46.633 9940-9940/com.hna.hi I/MultiDex: install
11-04 14:40:46.633 9940-9940/com.hna.hi I/MultiDex: VM has multidex support, MultiDex support library is disabled.
11-04 14:40:46.634 9940-9940/com.hna.hi W/linker: /system/lib64/libfilterUtils.so: unused DT entry: type 0x6ffffffe arg 0x808
11-04 14:40:46.634 9940-9940/com.hna.hi W/linker: /system/lib64/libfilterUtils.so: unused DT entry: type 0x6fffffff arg 0x2
11-04 14:40:46.635 9940-9940/com.hna.hi D/ActivityThread: installProvider: context.getPackageName()=com.hna.hi
11-04 14:40:46.653 9940-9940/com.hna.hi I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
11-04 14:40:46.653 9940-9940/com.hna.hi D/ActivityThread: installProvider: context.getPackageName()=com.hna.hi
11-04 14:40:46.659 9940-9940/com.hna.hi D/ActivityThread: installProvider: context.getPackageName()=com.hna.hi
11-04 14:40:46.664 9940-9940/com.hna.hi I/InstantRun: starting instant run server: is main process
11-04 14:40:46.664 9940-9940/com.hna.hi D/FlymeTrafficTracking: tag  (40) com.hna.hi main uid 10188
11-04 14:40:46.664 9940-9940/com.hna.hi D/NetworkManagementSocketTagger: tagSocket(40) with statsTag=0xffffffff, statsUid=-1
11-04 14:40:46.667 9940-9940/com.hna.hi I/art: Rejecting re-init on previously-failed class java.lang.Class<com.hna.hi.hnahelper.HNAHelper>
11-04 14:40:46.667 9940-9940/com.hna.hi D/AndroidRuntime: Shutting down VM


java.lang.NoClassDefFoundError: com.xxx.xxx.xxx
                                at com.xxx.xxx.xxx.onCreate(xxx.java:34)//Number of rows reported errors
                                at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
                                at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5076)
                                at android.app.ActivityThread.access$1600(ActivityThread.java:181)
                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1657)
                                at android.os.Handler.dispatchMessage(Handler.java:111)
                                at android.os.Looper.loop(Looper.java:194)
                                at android.app.ActivityThread.main(ActivityThread.java:5868)
                                at java.lang.reflect.Method.invoke(Native Method)
                                at java.lang.reflect.Method.invoke(Method.java:372)
                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1019)
                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:814)

This bug has puzzled Baidu and Google for a long time, but it is still useless. I think it's a mistake of so file under subpackage and jnilibs, but it's not. Later, it runs with simulator. It's good, no problem, and it's no problem to pack it out. It's no problem to plug the mobile phone into other people's computer. This is fucking. Finally, I consulted a god. It took one minute, one minute to fix it for me, because Android Studio defaults to turn on hot repair. The specific operation is to open settings, search for instant run, and then run Enable instant to hot swap code/resource changes on deploy (default). Enbled) That's not checked, that's all.

Ten thousand grass-mud horses galloping through my heart!!!


Posted by stockdalep on Thu, 07 Feb 2019 06:57:16 -0800