android - Why the unsigned application does not find the Application class? -


the application developing crashing in mobiles when not signed. when sign application, works on same devices made application crashes.

the error is:

process: com.my.application, pid: 10293 java.lang.runtimeexception: unable instantiate application com.my.application.di.base.app: java.lang.classnotfoundexception: didn't find class "com.my.application.di.base.app" on path: dexpathlist[[zip file "/data/app/com.my.application-1/base.apk"],nativelibrarydirectories=[/data/app/com.my.application-1/lib/arm, /vendor/lib, /system/lib]] @ android.app.loadedapk.makeapplication(loadedapk.java:563) @ android.app.activitythread.handlebindapplication(activitythread.java:4526) @ android.app.activitythread.access$1500(activitythread.java:151) @ android.app.activitythread$h.handlemessage(activitythread.java:1364) @ 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 "com.my.application.di.base.app" on path: dexpathlist[[zip file "/data/app/com.my.application-1/base.apk"],nativelibrarydirectories=[/data/app/com.my.application-1/lib/arm, /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.newapplication(instrumentation.java:980) @ android.app.loadedapk.makeapplication(loadedapk.java:558) ... 10 more suppressed: java.lang.classnotfoundexception: com.my.application.di.base.app     @ 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 

i'm not obfuscating code, nor use instant run. i'm using multidex.

for creating debug apk create build>build apk. issue facing because of instant run.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -