原来一直运行的好好的,后来添加了表情模块,然后就一直在报
10-26 08:51:44.058: E/AndroidRuntime(2018): java.lang.RuntimeException: Unable to instantiate application com.example.w3c_school.utils.ApplicationDIV: java.lang.NullPointerException
10-26 08:51:44.058: E/AndroidRuntime(2018): at android.app.LoadedApk.makeApplication(LoadedApk.java:504)
10-26 08:51:44.058: E/AndroidRuntime(2018): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4364)
10-26 08:51:44.058: E/AndroidRuntime(2018): at android.app.ActivityThread.access$1300(ActivityThread.java:141)
10-26 08:51:44.058: E/AndroidRuntime(2018): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
10-26 08:51:44.058: E/AndroidRuntime(2018): at android.os.Handler.dispatchMessage(Handler.java:99)
10-26 08:51:44.058: E/AndroidRuntime(2018): at android.os.Looper.loop(Looper.java:137)
10-26 08:51:44.058: E/AndroidRuntime(2018): at android.app.ActivityThread.main(ActivityThread.java:5041)
10-26 08:51:44.058: E/AndroidRuntime(2018): at java.lang.reflect.Method.invokeNative(Native Method)
10-26 08:51:44.058: E/AndroidRuntime(2018): at java.lang.reflect.Method.invoke(Method.java:511)
10-26 08:51:44.058: E/AndroidRuntime(2018): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
10-26 08:51:44.058: E/AndroidRuntime(2018): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
10-26 08:51:44.058: E/AndroidRuntime(2018): at dalvik.system.NativeStart.main(Native Method)
10-26 08:51:44.058: E/AndroidRuntime(2018): Caused by: java.lang.NullPointerException
10-26 08:51:44.058: E/AndroidRuntime(2018): at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:379)
10-26 08:51:44.058: E/AndroidRuntime(2018): at android.app.LoadedApk.getClassLoader(LoadedApk.java:322)
10-26 08:51:44.058: E/AndroidRuntime(2018): at android.app.LoadedApk.makeApplication(LoadedApk.java:496)
10-26 08:51:44.058: E/AndroidRuntime(2018): ... 11 more
在网上找了解决方法,就是将<Application
name=""去掉,但是我自己定义了Application,所以不能去掉,但是还是能执行的,就是觉得一直报错,很难受,有什么方法解决吗?