我最近更新到最新版本的 Android SDK。在更新之前,我的应用程序运行良好。现在我在运行时开始出现以下错误。我尝试在我的第一个活动开始时进行调试,但我的应用程序似乎并没有那么远。有谁知道我需要做什么才能让我的应用程序恢复运行?
08-29 13:45:27.974: E/AndroidRuntime(5266): FATAL EXCEPTION: main
08-29 13:45:27.974: E/AndroidRuntime(5266): java.lang.RuntimeException: Unable to instantiate application com.my_application.my_application:java.lang.ClassCastException: com.my_application.my_application
08-29 13:45:27.974: E/AndroidRuntime(5266): at android.app.LoadedApk.makeApplication(LoadedApk.java:490)
08-29 13:45:27.974: E/AndroidRuntime(5266): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3779)
08-29 13:45:27.974: E/AndroidRuntime(5266): at android.app.ActivityThread.access$2200(ActivityThread.java:132)
08-29 13:45:27.974: E/AndroidRuntime(5266): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1082)
08-29 13:45:27.974: E/AndroidRuntime(5266): at android.os.Handler.dispatchMessage(Handler.java:99)
08-29 13:45:27.974: E/AndroidRuntime(5266): at android.os.Looper.loop(Looper.java:150)
08-29 13:45:27.974: E/AndroidRuntime(5266): at android.app.ActivityThread.main(ActivityThread.java:4263)
08-29 13:45:27.974: E/AndroidRuntime(5266): at java.lang.reflect.Method.invokeNative(Native Method)
08-29 13:45:27.974: E/AndroidRuntime(5266): at java.lang.reflect.Method.invoke(Method.java:507)
08-29 13:45:27.974: E/AndroidRuntime(5266): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
08-29 13:45:27.974: E/AndroidRuntime(5266): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
08-29 13:45:27.974: E/AndroidRuntime(5266): at dalvik.system.NativeStart.main(Native Method)
08-29 13:45:27.974: E/AndroidRuntime(5266): Caused by: java.lang.ClassCastException: com.my_application.my_application
08-29 13:45:27.974: E/AndroidRuntime(5266): at android.app.Instrumentation.newApplication(Instrumentation.java:966)
08-29 13:45:27.974: E/AndroidRuntime(5266): at android.app.Instrumentation.newApplication(Instrumentation.java:951)
08-29 13:45:27.974: E/AndroidRuntime(5266): at android.app.LoadedApk.makeApplication(LoadedApk.java:481)
08-29 13:45:27.974: E/AndroidRuntime(5266): ... 11 more