I am getting the following error but the weird thing is that it is not specifying the class that is missing:
java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3681)
at android.app.ActivityThread.access$2000 (ActivityThread.java:229)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1903)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:148)
at android.app.ActivityThread.main (ActivityThread.java:7406)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass (ClassLoader.java:511)
at java.lang.ClassLoader.loadClass (ClassLoader.java:469)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3676)
ps.: The error only occurs in production. Emulator/test devices are fine
Check Proguard.txt or proguard configuration file. Proguard might be removing some classes while shrinking/obfuscation.
If you're using any external libraries, you need to add code to keep those classes in proguard file.
清理项目,然后重建可能工作的项目。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.