RuntimeException: Unable to instantiate application - android
When I run my application, everytime I am getting the below exception in my logcat:
04-14 09:29:53.965: W/dalvikvm(1020): threadid=1: thread exiting with 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 to instantiate application android.app.Application: java.lang.NullPointerException
04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.LoadedApk.makeApplication(LoadedApk.java:482)
04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3938)
04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
04-14 09:29:53.985: E/AndroidRuntime(1020): at android.os.Handler.dispatchMessage(Handler.java:99)
04-14 09:29:53.985: E/AndroidRuntime(1020): at android.os.Looper.loop(Looper.java:137)
04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.ActivityThread.main(ActivityThread.java:4424)
04-14 09:29:53.985: E/AndroidRuntime(1020): at java.lang.reflect.Method.invokeNative(Native Method)
04-14 09:29:53.985: E/AndroidRuntime(1020): at java.lang.reflect.Method.invoke(Method.java:511)
04-14 09:29:53.985: E/AndroidRuntime(1020): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
04-14 09:29:53.985: E/AndroidRuntime(1020): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
04-14 09:29:53.985: E/AndroidRuntime(1020): at 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): at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:362)
04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.LoadedApk.getClassLoader(LoadedApk.java:305)
04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.LoadedApk.makeApplication(LoadedApk.java:474)
04-14 09:29:53.985: E/AndroidRuntime(1020): ... 11 more
Note: When I uninstall the app from the emulator and run it, then I don't get this exception but when I re-run the installed application in emulator, I am getting this. Please help.
This is a verbose error message raised by underlying framework when dalvik re-install .apk file and trying to reuse or recycle the previous opened activity/view from the same package (if you haven't closed the previous installed app yet). It has nothing to do with your app, moreover, it is very unlikely that your app will get freezed or crashed cause by this verbose error message on end user's device.
It seems that this dalvik verbose error log only happend on Android 4.0 system, I've tested it myself on Android 3.2 and 2.3.3 running environment, where you cannot replicate to get this message shown on neither of them. A similar question has been discussed before at here and someone has filled a bug report in Android Issues Tracker.
I don't think you should concern too much about this verbose error log at the moment, if you look more logs before and after this red error in Logcat, you can see the full story and find that the previous opened activity/view (which are marked as died state) get killed and the newly re-installed one get poped ultimately.
I realise it's a very old question, but this may be useful anyway. I've found that when I observe this error in my own development, it's due to the previously running instance of my app not closing down neatly, for example by shutting down background threads prior to exit.
I have been getting same error when I tried connect to the internet with JSOUP inside my application class.
It was tricky, because application run on emulator but not on actual device.
It turned out, that I just used JSOUP library wrong. Loading page in new thread solved my problem.
Hope I helped someone.
Hope this helps someone.
Go to the running apps on your emulator by clicking this:
Close the app you are trying to install and then run it again. NO need to uninstall/reinstall app or clean project.
For me it helped to clean the Project.
In Eclipse:
- Project --> Clean
Please control that Project --> Build Automatically is CHECKED
If the gen-Folder is empty after that, there's a mistake in the res-folder. Often, mistakes in the res-folder aren't shown by the red cross!
Good luck and greetings
Simple Solution:
Just Restart your emulator or mobile device. And the problem is gone!
Reason for this issue was due to a previous app activity was wrongly halted.
In my case this error appear after I've imported Android Maven project into new workspace, and SRC folder was not automatically added to build path.
Right click on the project/Build path/Configure build path/Source - check if there missing sources.
I got the same problem. Cleaning the project worked for me.
Select project go to Project --> Clean
In my case logcat show me it coudn't find the initial activity, but the Dex Path was different, it was ".../data/app/myapp-1" instead of ".../data/app/myapp".
I soved this making click on the elcipse project name "myapp" in the Package explorer window. Then right click on it, ->refactor->rename...
I set the project name to myapp-1, and then, ->refactor->rename... and back again to "myapp".
Then it worked... some kinf of bug in eclipse?
I got the same problem. Uninstalling my app then reinstalling it solved the issue.
I experienced this when I imported my project which was built from a different machine.
Just Invalidate caches and restart
File>Invalidate Caches/Restart>Invalidate and restart
I changed the applicationId to something different on (Module:app) build.gradle file, run the app again on my device. Then, I undo the change and run the app again and everything works. It works on Android Studio 2.3.1 and 4 different devices I have here, from 5.0 to 7.0.
I meet this question.
When use gradle clean,gradle installDebug it work ok!
AndroidRuntime D Shutting down VM
E FATAL EXCEPTION: main
E Process: tv.panda.live.broadcast, PID: 4685
E java.lang.RuntimeException: Unable to instantiate application tv.panda.live.broadcast.PandaApplication: java.lang.ClassNotFoundException: Didn't find class "tv.panda.live.broadcast.PandaApplication" o
n path: DexPathList[[zip file "/data/app/tv.panda.live.broadcast-1/base.apk"],nativeLibraryDirectories=[/data/app/tv.panda.live.broadcast-1/lib/arm, /vendor/lib, /system/lib]]
E at android.app.LoadedApk.makeApplication(LoadedApk.java:572)
E at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4883)
E at android.app.ActivityThread.access$1500(ActivityThread.java:178)
E at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1573)
E at android.os.Handler.dispatchMessage(Handler.java:111)
E at android.os.Looper.loop(Looper.java:194)
E at android.app.ActivityThread.main(ActivityThread.java:5691)
E at java.lang.reflect.Method.invoke(Native Method)
E at java.lang.reflect.Method.invoke(Method.java:372)
E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
E Caused by: java.lang.ClassNotFoundException: Didn't find class "tv.panda.live.broadcast.PandaApplication" on path: DexPathList[[zip file "/data/app/tv.panda.live.broadcast-1/base.apk"],nativeLibraryDi
rectories=[/data/app/tv.panda.live.broadcast-1/lib/arm, /vendor/lib, /system/lib]]
E at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
E at android.app.Instrumentation.newApplication(Instrumentation.java:988)
E at android.app.LoadedApk.makeApplication(LoadedApk.java:567)
E ... 10 more
E Suppressed: java.lang.ClassNotFoundException: tv.panda.live.broadcast.PandaApplication
E at java.lang.Class.classForName(Native Method)
E at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
E at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
E at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
E ... 13 more
E Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
I received this error when using ksp instead of kapt when adding hilt dependency
Change
ksp "com.google.dagger:hilt-compiler:$hilt_verson"
to
kapt "com.google.dagger:hilt-compiler:$hilt_verson"
Hope that helps
Related
always get "package not installed" in android [duplicate]
When I run my application, everytime I am getting the below exception in my logcat: 04-14 09:29:53.965: W/dalvikvm(1020): threadid=1: thread exiting with 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 to instantiate application android.app.Application: java.lang.NullPointerException 04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.LoadedApk.makeApplication(LoadedApk.java:482) 04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3938) 04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.ActivityThread.access$1300(ActivityThread.java:123) 04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185) 04-14 09:29:53.985: E/AndroidRuntime(1020): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 09:29:53.985: E/AndroidRuntime(1020): at android.os.Looper.loop(Looper.java:137) 04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.ActivityThread.main(ActivityThread.java:4424) 04-14 09:29:53.985: E/AndroidRuntime(1020): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 09:29:53.985: E/AndroidRuntime(1020): at java.lang.reflect.Method.invoke(Method.java:511) 04-14 09:29:53.985: E/AndroidRuntime(1020): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 04-14 09:29:53.985: E/AndroidRuntime(1020): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 04-14 09:29:53.985: E/AndroidRuntime(1020): at 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): at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:362) 04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.LoadedApk.getClassLoader(LoadedApk.java:305) 04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.LoadedApk.makeApplication(LoadedApk.java:474) 04-14 09:29:53.985: E/AndroidRuntime(1020): ... 11 more Note: When I uninstall the app from the emulator and run it, then I don't get this exception but when I re-run the installed application in emulator, I am getting this. Please help.
This is a verbose error message raised by underlying framework when dalvik re-install .apk file and trying to reuse or recycle the previous opened activity/view from the same package (if you haven't closed the previous installed app yet). It has nothing to do with your app, moreover, it is very unlikely that your app will get freezed or crashed cause by this verbose error message on end user's device. It seems that this dalvik verbose error log only happend on Android 4.0 system, I've tested it myself on Android 3.2 and 2.3.3 running environment, where you cannot replicate to get this message shown on neither of them. A similar question has been discussed before at here and someone has filled a bug report in Android Issues Tracker. I don't think you should concern too much about this verbose error log at the moment, if you look more logs before and after this red error in Logcat, you can see the full story and find that the previous opened activity/view (which are marked as died state) get killed and the newly re-installed one get poped ultimately.
I realise it's a very old question, but this may be useful anyway. I've found that when I observe this error in my own development, it's due to the previously running instance of my app not closing down neatly, for example by shutting down background threads prior to exit.
I have been getting same error when I tried connect to the internet with JSOUP inside my application class. It was tricky, because application run on emulator but not on actual device. It turned out, that I just used JSOUP library wrong. Loading page in new thread solved my problem. Hope I helped someone.
Hope this helps someone. Go to the running apps on your emulator by clicking this: Close the app you are trying to install and then run it again. NO need to uninstall/reinstall app or clean project.
For me it helped to clean the Project. In Eclipse: - Project --> Clean Please control that Project --> Build Automatically is CHECKED If the gen-Folder is empty after that, there's a mistake in the res-folder. Often, mistakes in the res-folder aren't shown by the red cross! Good luck and greetings
Simple Solution: Just Restart your emulator or mobile device. And the problem is gone! Reason for this issue was due to a previous app activity was wrongly halted.
In my case this error appear after I've imported Android Maven project into new workspace, and SRC folder was not automatically added to build path. Right click on the project/Build path/Configure build path/Source - check if there missing sources.
I got the same problem. Cleaning the project worked for me. Select project go to Project --> Clean
In my case logcat show me it coudn't find the initial activity, but the Dex Path was different, it was ".../data/app/myapp-1" instead of ".../data/app/myapp". I soved this making click on the elcipse project name "myapp" in the Package explorer window. Then right click on it, ->refactor->rename... I set the project name to myapp-1, and then, ->refactor->rename... and back again to "myapp". Then it worked... some kinf of bug in eclipse?
I got the same problem. Uninstalling my app then reinstalling it solved the issue.
I experienced this when I imported my project which was built from a different machine. Just Invalidate caches and restart File>Invalidate Caches/Restart>Invalidate and restart
I changed the applicationId to something different on (Module:app) build.gradle file, run the app again on my device. Then, I undo the change and run the app again and everything works. It works on Android Studio 2.3.1 and 4 different devices I have here, from 5.0 to 7.0.
I meet this question. When use gradle clean,gradle installDebug it work ok! AndroidRuntime D Shutting down VM E FATAL EXCEPTION: main E Process: tv.panda.live.broadcast, PID: 4685 E java.lang.RuntimeException: Unable to instantiate application tv.panda.live.broadcast.PandaApplication: java.lang.ClassNotFoundException: Didn't find class "tv.panda.live.broadcast.PandaApplication" o n path: DexPathList[[zip file "/data/app/tv.panda.live.broadcast-1/base.apk"],nativeLibraryDirectories=[/data/app/tv.panda.live.broadcast-1/lib/arm, /vendor/lib, /system/lib]] E at android.app.LoadedApk.makeApplication(LoadedApk.java:572) E at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4883) E at android.app.ActivityThread.access$1500(ActivityThread.java:178) E at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1573) E at android.os.Handler.dispatchMessage(Handler.java:111) E at android.os.Looper.loop(Looper.java:194) E at android.app.ActivityThread.main(ActivityThread.java:5691) E at java.lang.reflect.Method.invoke(Native Method) E at java.lang.reflect.Method.invoke(Method.java:372) E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959) E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754) E Caused by: java.lang.ClassNotFoundException: Didn't find class "tv.panda.live.broadcast.PandaApplication" on path: DexPathList[[zip file "/data/app/tv.panda.live.broadcast-1/base.apk"],nativeLibraryDi rectories=[/data/app/tv.panda.live.broadcast-1/lib/arm, /vendor/lib, /system/lib]] E at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) E at java.lang.ClassLoader.loadClass(ClassLoader.java:511) E at java.lang.ClassLoader.loadClass(ClassLoader.java:469) E at android.app.Instrumentation.newApplication(Instrumentation.java:988) E at android.app.LoadedApk.makeApplication(LoadedApk.java:567) E ... 10 more E Suppressed: java.lang.ClassNotFoundException: tv.panda.live.broadcast.PandaApplication E at java.lang.Class.classForName(Native Method) E at java.lang.BootClassLoader.findClass(ClassLoader.java:781) E at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) E at java.lang.ClassLoader.loadClass(ClassLoader.java:504) E ... 13 more E Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
I received this error when using ksp instead of kapt when adding hilt dependency Change ksp "com.google.dagger:hilt-compiler:$hilt_verson" to kapt "com.google.dagger:hilt-compiler:$hilt_verson" Hope that helps
Osmand build crash on debug
I imported the latest master folder (master branch 26-12-2014) to Android-Studio,Gradle build the project successfully after little fix (asset missing,inner fragment static error) then i launched the debugger on my device (samsung galaxy 3 min,Android 4.1.2),I expect to have Osmand running on my device but the application crashes and the log indicate that it happen on getting routing.xml file. 12-26 10:47:10.069 10508-10508/net.osmand.plus E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.RuntimeException: Unable to create application net.osmand.plus.OsmandApplication: java.lang.IllegalStateException: java.lang.IllegalArgumentException at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4200) at android.app.ActivityThread.access$1400(ActivityThread.java:134) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4867) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalStateException: java.lang.IllegalArgumentException at net.osmand.router.RoutingConfiguration.getDefault(RoutingConfiguration.java:171) at net.osmand.plus.helpers.AvoidSpecificRoads.getBuilder(AvoidSpecificRoads.java:44) at net.osmand.plus.helpers.AvoidSpecificRoads.<init>(AvoidSpecificRoads.java:38) at net.osmand.plus.OsmandApplication.onCreate(OsmandApplication.java:168) Thanks.
Make sure that there is a folder named "router" inside your "OsmAnd/scr/net/osmand/" folder which contains the routing.xml file. If not you can find the resources needed here
What could be causing a ClassNotFoundException?
So I've been working on an app lately which runs fine on most devices. However, sometimes the app crashes at start up with the following error: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mypackage.app/com.mypackage.app.activities.MainPager}: java.lang.ClassNotFoundException: com.mypackage.app.activities.MainPager at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1995) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2096) at android.app.ActivityThread.access$600(ActivityThread.java:138) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1207) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:213) at android.app.ActivityThread.main(ActivityThread.java:4787) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:115) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.ClassNotFoundException: com.mypackage.app.activities.MainPager at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61) at java.lang.ClassLoader.loadClass(ClassLoader.java:501) at java.lang.ClassLoader.loadClass(ClassLoader.java:461) at android.app.Instrumentation.newActivity(Instrumentation.java:1053) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1986) ... 12 more I get that this is because it can't find the class called MainPager. But how is that even possible? I mean, the class should be there.. I put it there myself :) . Why on earth is it not finding it? EDIT: I think the cause may be that in my manifest I have android:package="com.mypackage.app" defined, but that my launch activity is in the package com.mypackage.app.activities. Currently testing this theory. Still weird that it only happens on some devices, though. This solution won't work, since I then can't update the APK in Google Play (has to be the same package name in the manifest).
Since ADT update to revision 22 (May 2013) you have to check "Android Private Libraries" check box in Project -> Properties -> Java Build Path -> Order and Export in Eclipse for your older projects to get rid of this exception ...
in the manifest you add Activity name like this android:name=".activities.MainPager" because you have given package name android:package="com.mypackage.app"
Now I am using ART runtime on Nexus 5, and I am getting ClassNotFound for some apps. You can safely ignore those if that's the case for your users.
NoClassDefFoundError occured while initiate fragment
java.lang.NoClassDefFoundError occured at the first line: FirstFragment firstTab = FirstFragment.newInstance(10); mTabsAdapter.addTab(generateTabSpec(0, mTabHost), firstTab.getClass(), null); But I'm pretty sure the Fragment exist! (it's a fragment so don't need to check if declared in Manifest.) Even refactoring its name or move to other package didn't fix the problem. Here's the stacktrace: ERROR/AndroidRuntime(23608): FATAL EXCEPTION: main java.lang.NoClassDefFoundError: dev.twothree.android.wtf.FirstFragment at dev.twothree.android.activity.FragmentTab.setupTabHost(FragmentTab.java:110) at dev.twothree.android.activity.FragmentTab.onCreate(FragmentTab.java:75) at android.app.Activity.performCreate(Activity.java:5008) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2136) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2207) at android.app.ActivityThread.access$600(ActivityThread.java:139) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4899) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558) at dalvik.system.NativeStart.main(Native Method) Is it a bug of Intell J 12.0.4? My version is Build #IC-123.169. Later I'll try it in the Eclipse, but still hope it can be resolved in Intelli J.
After open the whole project with Eclipse, config all the dependencies ONCE AGAIN, Eclipse point out that I accidentally CAST one of the custom library class to another class. Maybe that's why no successful compiled class file existed for later invoke. Anyway, it seems Intelli-J didn't found that error while 3rd party library is involved, it could be a bug. But the blame is also on me for not find that so obvious error.
Classnotfound exception for working app
I have a strange issue.I developed an android application with scan functionality.I reused some zxing code code for the scanning section. My app is working fine for all the device and emulater too.But after I uploaded it in market I am getting error on scan portion.My error report is java.lang.IllegalStateException: Could not execute method of the activity at android.view.View$1.onClick(View.java:2191) at android.view.View.performClick(View.java:2532) at android.view.View$PerformClick.run(View.java:9291) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:4293) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at android.view.View$1.onClick(View.java:2186) ... 11 more Caused by: java.lang.ExceptionInInitializerError at com.imotiva.Menu1.points(Menu1.java:46) ... 14 more Caused by: java.lang.NoClassDefFoundError: com.qr.decoding.ResultMetadataType at com.qr.scanning.CaptureActivity.<clinit>(CaptureActivity.java:92) ... 15 more Still my code code is working in device but the same app in the market don't. Please help me friends...
At last I found the solution for my problem.gtumca-MAC's solution Android update 17 seems incompatible with external Jars worked for me.Created one folder named libs and add my core.jar .Now it's working fine.Thanks all.