运行 Android 应用程序时,我收到这些错误,但实际上一切在设备上运行良好。那是什么意思?以及如何摆脱它们?
07-20 11:09:38.119: E/AndroidRuntime(930): FATAL EXCEPTION: main
07-20 11:09:38.119: E/AndroidRuntime(930): java.lang.RuntimeException: Unable to instantiate application android.app.Application: java.lang.NullPointerException
07-20 11:09:38.119: E/AndroidRuntime(930): at android.app.LoadedApk.makeApplication(LoadedApk.java:482)
07-20 11:09:38.119: E/AndroidRuntime(930): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3909)
07-20 11:09:38.119: E/AndroidRuntime(930): at android.app.ActivityThread.access$1300(ActivityThread.java:122)
07-20 11:09:38.119: E/AndroidRuntime(930): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1184)
07-20 11:09:38.119: E/AndroidRuntime(930): at android.os.Handler.dispatchMessage(Handler.java:99)
07-20 11:09:38.119: E/AndroidRuntime(930): at android.os.Looper.loop(Looper.java:137)
07-20 11:09:38.119: E/AndroidRuntime(930): at android.app.ActivityThread.main(ActivityThread.java:4340)
07-20 11:09:38.119: E/AndroidRuntime(930): at java.lang.reflect.Method.invokeNative(Native Method)
07-20 11:09:38.119: E/AndroidRuntime(930): at java.lang.reflect.Method.invoke(Method.java:511)
07-20 11:09:38.119: E/AndroidRuntime(930): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
07-20 11:09:38.119: E/AndroidRuntime(930): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
07-20 11:09:38.119: E/AndroidRuntime(930): at dalvik.system.NativeStart.main(Native Method)
07-20 11:09:38.119: E/AndroidRuntime(930): Caused by: java.lang.NullPointerException
07-20 11:09:38.119: E/AndroidRuntime(930): at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:362)
07-20 11:09:38.119: E/AndroidRuntime(930): at android.app.LoadedApk.getClassLoader(LoadedApk.java:305)
07-20 11:09:38.119: E/AndroidRuntime(930): at android.app.LoadedApk.makeApplication(LoadedApk.java:474)
07-20 11:09:38.119: E/AndroidRuntime(930): ... 11 more