简体   繁体   English

在Eclipse应用程序上启动时出现问题

[英]Issue when launching on Eclipse application

I'm trying to develop my own application for Android devices. 我正在尝试为Android设备开发自己的应用程序。 I'm working with API Level 13 AVD. 我正在使用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 :( 谢谢你试图解决,我对此感到非常失望:(

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). 如果它无法帮助您更改虚拟设备版本RAM大小 (设置为512MB)。 If you aren't using virtual device, disconnect your physical device and restart Eclipse, then reconnect your device. 如果您未使用虚拟设备,请断开物理设备并重新启动Eclipse,然后重新连接设备。

It looks like you have some library that you use, but it is not part of the APK ( com.smart.framework.SmartApplication ). 看起来你有一些你使用的库,但它不是APK( com.smart.framework.SmartApplication )的一部分。 Include that in APK at it should run. 包括在APK中它应该运行。 (Your app throws ClassNotFoundException ) (您的应用程序抛出ClassNotFoundException

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM