android - ClassNotFoundException: Didn't find class on path: DexPathList -
i have problem since updated app on playstore. since update, exception thrown, haven´t changed related exception.
stacktrace:
java.lang.runtimeexception: unable instantiate activity componentinfo{de.opiatefuchs.onthejobtimerlight/de.opiatefuchs.onthejobtimerlight.onthejobtimeractivity}: java.lang.classnotfoundexception: didn't find class "de.opiatefuchs.onthejobtimerlight.onthejobtimeractivity" on path: dexpathlist[[zip file "/data/app/de.opiatefuchs.onthejobtimerlight-1/base.apk"],nativelibrarydirectories=[/vendor/lib, /system/lib]] @ android.app.activitythread.performlaunchactivity(activitythread.java:2236) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2387) @ android.app.activitythread.access$800(activitythread.java:151) @ android.app.activitythread$h.handlemessage(activitythread.java:1303) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:135) @ android.app.activitythread.main(activitythread.java:5254) @ java.lang.reflect.method.invoke(native method) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:903) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:698) caused by: java.lang.classnotfoundexception: didn't find class "de.opiatefuchs.onthejobtimerlight.onthejobtimeractivity" on path: dexpathlist[[zip file "/data/app/de.opiatefuchs.onthejobtimerlight-1/base.apk"],nativelibrarydirectories=[/vendor/lib, /system/lib]] @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:56) @ java.lang.classloader.loadclass(classloader.java:511) @ java.lang.classloader.loadclass(classloader.java:469) @ android.app.instrumentation.newactivity(instrumentation.java:1066) @ android.app.activitythread.performlaunchactivity(activitythread.java:2226) ... 10 more suppressed: java.lang.classnotfoundexception: de.opiatefuchs.onthejobtimerlight.onthejobtimeractivity @ java.lang.class.classforname(native method) @ java.lang.bootclassloader.findclass(classloader.java:781) @ java.lang.bootclassloader.loadclass(classloader.java:841) @ java.lang.classloader.loadclass(classloader.java:504) ... 13 more caused by: java.lang.noclassdeffounderror: class not found using boot class loader; no stack available
the thing is, app version before runs without problems , haven´t changed related activity. i´ve added new info dialog has nothing activity. app free lite version, i´ve made exact same changes on pro version , there nothing thrown. works expected. difference between pro , lite is, have integrated admob (on new way) in lite version , google play license in pro version. have integrated since beginning , haven´t made changes this. haven´t made changes manifest, read many posts here nothing helps.
it seems happen on android versions since 5.0 . has idea problem cause or has same experiences? possible proguard destroyed obfuscating (also here, no changes)?
i posted no code, because not important problem, said haven´t made changes related exception.
this question marked duplicate isn´t. comment link doesn´t fix problem, libraries checked , integrated in right way. also, don´t use ndk.
update
after long time, turned out must have proguard. can´t error causes, tried little bit , that´s noticed (that´s in case eclipse ide):
- i have close every tab project want sign
- i have clean project , after cleaning, nothing export apk
- making small change in manifest, save , undo change (and save)
- if there class in manifest named "yourclass" or ".yourclass", change "com.yourpackage.yourclass"
that 4 points have done , worked. looks suspicious, think there problem obfuscating. because without doing these points, can compile apk , install eclipse. me, there no obvious reason behavior. package name work without change if install eclipse. hope these points can somebody.