android - RuntimeException: Unable to instantiate application -


when run application, everytime getting below exception in logcat:

 04-14 09:29:53.965: w/dalvikvm(1020): threadid=1: thread exiting uncaught exception (group=0x409c01f8)     04-14 09:29:53.985: e/androidruntime(1020): fatal exception: main     04-14 09:29:53.985: e/androidruntime(1020): java.lang.runtimeexception: unable instantiate application   android.app.application: java.lang.nullpointerexception     04-14 09:29:53.985: e/androidruntime(1020):     @ android.app.loadedapk.makeapplication(loadedapk.java:482)     04-14 09:29:53.985: e/androidruntime(1020):     @ android.app.activitythread.handlebindapplication(activitythread.java:3938)     04-14 09:29:53.985: e/androidruntime(1020):     @ android.app.activitythread.access$1300(activitythread.java:123)     04-14 09:29:53.985: e/androidruntime(1020):     @ android.app.activitythread$h.handlemessage(activitythread.java:1185)     04-14 09:29:53.985: e/androidruntime(1020):     @ android.os.handler.dispatchmessage(handler.java:99)     04-14 09:29:53.985: e/androidruntime(1020):     @ android.os.looper.loop(looper.java:137)     04-14 09:29:53.985: e/androidruntime(1020):     @ android.app.activitythread.main(activitythread.java:4424)     04-14 09:29:53.985: e/androidruntime(1020):     @ java.lang.reflect.method.invokenative(native method)     04-14 09:29:53.985: e/androidruntime(1020):     @ java.lang.reflect.method.invoke(method.java:511)     04-14 09:29:53.985: e/androidruntime(1020):     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:784)     04-14 09:29:53.985: e/androidruntime(1020):     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:551)     04-14 09:29:53.985: e/androidruntime(1020):     @ dalvik.system.nativestart.main(native method)     04-14 09:29:53.985: e/androidruntime(1020): caused by: java.lang.nullpointerexception     04-14 09:29:53.985: e/androidruntime(1020):     @ android.app.loadedapk.initializejavacontextclassloader(loadedapk.java:362)     04-14 09:29:53.985: e/androidruntime(1020):     @ android.app.loadedapk.getclassloader(loadedapk.java:305)     04-14 09:29:53.985: e/androidruntime(1020):     @ android.app.loadedapk.makeapplication(loadedapk.java:474)     04-14 09:29:53.985: e/androidruntime(1020):     ... 11 more 

note: when uninstall app emulator , run it, don't exception when re-run installed application in emulator, getting this. please help

this verbose error message raised underlying framework when dalvik re-install .apk file , trying reuse or recycle previous opened activity/view same package (if haven't closed previous installed app yet). has nothing app, moreover, unlikely app freezed or crashed cause verbose error message on end user's device.

it seems dalvik verbose error log happend on android 4.0 system, i've tested myself on android 3.2 , 2.3.3 running environment, cannot replicate message shown on neither of them. similar question has been discussed before @ here , has filled bug report in android issues tracker.

i don't think should concern verbose error log @ moment, if more logs before , after red error in logcat, can see full story , find previous opened activity/view (which marked died state) killed , newly re-installed 1 poped ultimately.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -