How to resolve ClassNotFoundException in Android Studio -
i have migrated project eclipse android studio. earlier working perfectly, when started working on again not able launch application. showing me same error. haven't changed on application level, still getting same result. here log getting
fatal exception: main process: com.example.android, pid: 6977 java.lang.runtimeexception: unable instantiate application com.example.android.mobapplication: java.lang.classnotfoundexception: didn't find class "com.example.android.mobapplication" on path: dexpathlist[[zip file "/data/app/com.example.android-1/base.apk"],nativelibrarydirectories=[/vendor/lib, /system/lib]] @ android.app.loadedapk.makeapplication(loadedapk.java:601) @ android.app.activitythread.handlebindapplication(activitythread.java:4919) @ android.app.activitythread.access$1500(activitythread.java:144) @ android.app.activitythread$h.handlemessage(activitythread.java:1424) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:155) @ android.app.activitythread.main(activitythread.java:5721) @ java.lang.reflect.method.invoke(native method) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1029) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:824) caused by: java.lang.classnotfoundexception: didn't find class "com.example.android.mobapplication" on path: dexpathlist[[zip file "/data/app/com.example.android-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.newapplication(instrumentation.java:986) @ android.app.loadedapk.makeapplication(loadedapk.java:587) @ android.app.activitythread.handlebindapplication(activitythread.java:4919) @ android.app.activitythread.access$1500(activitythread.java:144) @ android.app.activitythread$h.handlemessage(activitythread.java:1424) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:155) @ android.app.activitythread.main(activitythread.java:5721) @ java.lang.reflect.method.invoke(native method) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1029) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:824) suppressed: java.lang.classnotfoundexception: com.example.android.mobapplication @ 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
as have switched ide facing problems solve one. have tried other answers still unable solve error. kindly me can proceed project. appreciable. thanks
this might 65k methods limit. try use solutions in link.
edit: others stumble issue - @salman khan added multidexenabled true
gradle file (as written in link) , solved problem. still better read whole article , follow steps there.
Comments
Post a Comment