我正在尝试为 Android 设备开发自己的应用程序。我正在使用 API Level 13 AVD。我成功地在设备上安装了应用程序,但是当我尝试启动它时,我收到了这些错误:
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
感谢您尝试解决,对此我感到非常失望:(