ClassNotFoundException Mystery

Google Play Console reports what minute percentage my users get ClassNotFoundException

when they launch the app. Is the sacrament the class that cannot be found? Well, Stacktrace has to give a name, but in these cases the name is missing. Below is a trace that is sent by multiple devices:

java.lang.RuntimeException: 
  at android.app.LoadedApk.makeApplication(LoadedApk.java:507)
  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4720)
  at android.app.ActivityThread.access$1500(ActivityThread.java:166)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1343)
  at android.os.Handler.dispatchMessage(Handler.java:102)
  at android.os.Looper.loop(Looper.java:136)
  at android.app.ActivityThread.main(ActivityThread.java:5584)
  at java.lang.reflect.Method.invokeNative(Method.java:0)
  at java.lang.reflect.Method.invoke(Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
  at dalvik.system.NativeStart.main(NativeStart.java:0)
Caused by: java.lang.ClassNotFoundException: 
  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
  at android.app.Instrumentation.newApplication(Instrumentation.java:982)
  at android.app.LoadedApk.makeApplication(LoadedApk.java:502)

      

As you can see, the standard message "No class found" xx.yy.zz "is missing! Any ideas?

+3


source to share


1 answer


I just created an account to ask something, so I couldn't help you in the comment :) Sorry for making this little hint as an answer.



the last exception for no reason is interesting. my answer, despite the data you provided from your project, is to watch out for the "Caused by: java.lang.ClassNotFoundException:" line in the log output, just below this line goto "BaseDexClassLoader.java:56" by clicking to it, this is the first line in its stack trace, this line tells you the class and method in which the exception for no reason happened, as well as its file and line number, I'm sure you will find more searches from there as this is the place probably caused by the main problem.

0


source







All Articles