Reputation: 226
I'm trying to develop my own application for Android devices. I'm working with API Level 13 AVD. I succeed in installing the application on the device, but when I try to lauch it, I'm getting those errors :
04-13 20:34:44.720: E/AndroidRuntime(566): FATAL EXCEPTION: main
04-13 20:34:44.720: E/AndroidRuntime(566): java.lang.RuntimeException: Unable to instantiate application com.smart.framework.SmartApplication: java.lang.ClassNotFoundException: com.smart.framework.SmartApplication in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/com.ijoomer.src-2.apk]
04-13 20:34:44.720: E/AndroidRuntime(566): at android.app.LoadedApk.makeApplication(LoadedApk.java:482)
04-13 20:34:44.720: E/AndroidRuntime(566): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3684)
04-13 20:34:44.720: E/AndroidRuntime(566): at android.app.ActivityThread.access$1200(ActivityThread.java:122)
04-13 20:34:44.720: E/AndroidRuntime(566): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1062)
04-13 20:34:44.720: E/AndroidRuntime(566): at android.os.Handler.dispatchMessage(Handler.java:99)
04-13 20:34:44.720: E/AndroidRuntime(566): at android.os.Looper.loop(Looper.java:132)
04-13 20:34:44.720: E/AndroidRuntime(566): at android.app.ActivityThread.main(ActivityThread.java:4123)
04-13 20:34:44.720: E/AndroidRuntime(566): at java.lang.reflect.Method.invokeNative(Native Method)
04-13 20:34:44.720: E/AndroidRuntime(566): at java.lang.reflect.Method.invoke(Method.java:491)
04-13 20:34:44.720: E/AndroidRuntime(566): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
04-13 20:34:44.720: E/AndroidRuntime(566): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
04-13 20:34:44.720: E/AndroidRuntime(566): at dalvik.system.NativeStart.main(Native Method)
04-13 20:34:44.720: E/AndroidRuntime(566): Caused by: java.lang.ClassNotFoundException: com.smart.framework.SmartApplication in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/com.ijoomer.src-2.apk]
04-13 20:34:44.720: E/AndroidRuntime(566): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251)
04-13 20:34:44.720: E/AndroidRuntime(566): at java.lang.ClassLoader.loadClass(ClassLoader.java:540)
04-13 20:34:44.720: E/AndroidRuntime(566): at java.lang.ClassLoader.loadClass(ClassLoader.java:500)
04-13 20:34:44.720: E/AndroidRuntime(566): at android.app.Instrumentation.newApplication(Instrumentation.java:941)
04-13 20:34:44.720: E/AndroidRuntime(566): at android.app.LoadedApk.makeApplication(LoadedApk.java:477)
04-13 20:34:44.720: E/AndroidRuntime(566): ... 11 more
Thanks for trying to solve, I'm quite disappointed by this :(
Upvotes: 1
Views: 135
Reputation: 5919
It looks like you have some library that you use, but it is not part of the APK (com.smart.framework.SmartApplication
). Include that in APK at it should run. (Your app throws ClassNotFoundException
)
Upvotes: 0
Reputation: 2289
Try to clean your project and reinstall the application.
Project->Clean...
If it doesn't help change your virtual device version and RAM size(set to 512MB). If you aren't using virtual device, disconnect your physical device and restart Eclipse, then reconnect your device.
Upvotes: 3