Android: Crash report ClassNotFoundException occurs (rarely) after every app update? Security issue?

I got a weird crash report (ClassNotFoundException) that happens after every update of my application. It looks like it has something to do with replacing the app in memory during the update, as it only happens when the update is released and many people download it (although this rarely happens), after a few days it always disappears and basically never happens ...

I suspect there is a proguard that disables some classes - but how do I know which classes are causing the problem? There is no useful information in the stack trace ... And I don't want to stop using ProGuard.

This is the stack trace:

java.lang.RuntimeException: 
  at android.app.LoadedApk.makeApplication(LoadedApk.java:572)
  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4837)
  at android.app.ActivityThread.access$1500(ActivityThread.java:178)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1531)
  at android.os.Handler.dispatchMessage(Handler.java:111)
  at android.os.Looper.loop(Looper.java:194)
  at android.app.ActivityThread.main(ActivityThread.java:5643)
  at java.lang.reflect.Method.invoke(Method.java:0)
  at java.lang.reflect.Method.invoke(Method.java:372)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
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.Instrumentation.newApplication(Instrumentation.java:985)
  at android.app.LoadedApk.makeApplication(LoadedApk.java:567)

      

EDIT: My proguard file:

-renamesourcefileattribute SourceFile
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
-keep class org.acra.* {
    *;
}

      

0
android classnotfoundexception crash proguard


source to share


No one has answered this question yet

See similar questions:

7
java.lang.ClassNotFoundException: Didn't find class on path: DexPathList, After sdk update
3
Thousands of strange crashes in the new version of the Google Play console
2
Why do I have a ClassNotFoundException in my application?

or similar:

140
Failed to create app com.android.tools.fd.runtime.BootstrapApplication?
12
TabLayout crashes after updating support library to 23.2.1
eleven
RuntimeException: ClassNotFoundException android.arch.lifecycle.ProcessLifecycleOwnerInitializer
6
Unexpected crash in BaseDexClassLoader
2
java.lang.ClassNotFoundException: did not find class.Application "on path: DexPathList
1
Xposed issue when developing Android app
1
Application crashes with ClassNotFoundException
0
Android Wear ClassNotFoundException after gradient update
-2
Android app crashes when installed manually and works fine when installed with android studio
-4
What is the error? and how to solve



All Articles
Loading...
X
Show
Funny
Dev
Pics