error-android 运行时出现的错误

问题描述

android 运行时出现的错误
我选择logcat里面的error,运行程序时出现以下错误,这是什么呢?看不懂呀。运行多次后出现Unable to instantiate application android.app.Application: java.lang.NullPointerException。而我在另一个文件夹下载的项目做了一样的修改,运行起来一点儿问题也么,我搞不懂了。

每次出现的问题
05-16 09:40:07.532 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:40:07.532 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:40:12.557 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:40:12.557 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:40:16.922 425-581/? E/Watchdog﹕ !@Sync 70
05-16 09:40:17.562 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:40:17.572 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:40:22.597 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:40:22.597 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:40:27.612 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:40:27.622 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:40:32.607 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:40:32.607 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:40:37.622 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:40:37.622 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:40:42.627 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:40:42.627 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:40:43.658 425-435/? E/WifiP2pStateTracker﹕ getNetworkInfo : NetworkInfo: type: WIFI_P2P[] state: UNKNOWN/IDLE reason: (unspecified) extra: (none) roaming: false failover: false isAvailable: true
05-16 09:40:43.868 7171-7252/? E/MtpServerJNI﹕ server is null in send_object_added
05-16 09:40:43.868 7253-7253/? E/MTPJNIInterface﹕ In MTPJNIINterface onReceive:com.android.MTP.OBJECT_ADDED
05-16 09:40:43.908 639-639/? E/CscFactoryReceiver﹕ onReceive android.intent.action.MEDIA_SCANNER_FINISHED
05-16 09:40:43.918 639-639/? E/CscUpdateService﹕ costomer file is exists : it has been preconfiged.
05-16 09:40:43.928 639-639/? E/CscUpdateService﹕ costomer file is exists : it has been preconfiged.
05-16 09:40:43.938 639-8468/? E/CscParser﹕ update(): xml file exist
05-16 09:40:43.938 639-639/? E/CscUpdateService﹕ costomer file is exists : it has been preconfiged.
05-16 09:40:43.948 639-8479/? E/CscParser﹕ update(): xml file exist
05-16 09:40:43.958 639-8480/? E/CscParser﹕ update(): xml file exist
05-16 09:40:43.968 6928-6928/? E/EasyGalleryWidget﹕ itemCount : 106
05-16 09:40:43.968 6928-6928/? E/EasyGalleryWidget﹕ mItemCountForDBCheck : 0
05-16 09:40:43.978 6928-8483/? E/EasyGalleryWidget﹕ !!!!! UpdateRemoteViewThread run()
05-16 09:40:44.258 131-397/? E/MetadataRetrieverClient﹕ failed to extract an album art
05-16 09:40:44.258 6928-8483/? E/MediaMetadataRetrieverJNI﹕ getEmbeddedPicture: Call to getEmbeddedPicture failed.
05-16 09:40:46.921 425-581/? E/Watchdog﹕ !@Sync 71
05-16 09:40:47.662 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:40:47.662 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:40:52.686 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:40:52.686 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:40:57.711 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:40:57.711 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:41:02.716 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:41:02.716 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:41:07.751 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:41:07.751 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:41:12.756 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:41:12.756 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:41:16.930 425-581/? E/Watchdog﹕ !@Sync 72
05-16 09:41:17.791 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:41:17.791 7253-7253/? E/MtpService﹕ battPlugged Type : 2
05-16 09:41:22.806 7253-7253/? E/MtpService﹕ In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
05-16 09:41:22.806 7253-7253/? E/MtpService﹕ battPlugged Type : 2

运行多次后出现
05-16 09:47:18.683 8534-8534/com.xfengche.wwww.xfegncheradio_net E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to instantiate application android.app.Application: java.lang.NullPointerException
at android.app.LoadedApk.makeApplication(LoadedApk.java:501)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4238)
at android.app.ActivityThread.access$1400(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1297)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4935)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:377)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:320)
at android.app.LoadedApk.makeApplication(LoadedApk.java:493)
????????????at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4238)
????????????at android.app.ActivityThread.access$1400(ActivityThread.java:140)
????????????at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1297)
????????????at android.os.Handler.dispatchMessage(Handler.java:99)
????????????at android.os.Looper.loop(Looper.java:137)
????????????at android.app.ActivityThread.main(ActivityThread.java:4935)
????????????at java.lang.reflect.Method.invokeNative(Native Method)
????????????at java.lang.reflect.Method.invoke(Method.java:511)
????????????at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
????????????at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
????????????at dalvik.system.NativeStart.main(Native Method)

解决方案

我也想问一下怎么挣积分呀

解决方案二:
AndroidManifest.xml中的application里的android:name去掉试试

  <application        android:name=""""//去掉

或者自己继承application重新写一个

解决方案三:
我继承了自己写的application了,为什么还报这样的错误啊,求解

时间: 2024-08-29 09:23:06

error-android 运行时出现的错误的相关文章

jetty maven运行时 出现503错误 打不开页面 但是后台显示jetty容器正常

问题描述 jetty maven运行时 出现503错误 打不开页面 但是后台显示jetty容器正常 jetty maven运行时 出现503错误 打不开页面 但是后台显示jetty容器正常

java-Java中PDF转图片报运行时异常,错误看不懂,求帮助

问题描述 Java中PDF转图片报运行时异常,错误看不懂,求帮助 下图是控制台报错信息,求大神帮忙看看,是PDF格式不支持吗? 解决方案 看下是不是你的页面太多,内存不够,需要调整jvm设置.

.net mvc4 运行时出现配置错误问题 这该怎么解决?

问题描述 .net mvc4 运行时出现配置错误问题 这该怎么解决? "/"应用程序中的服务器错误. 配置错误 说明: 在处理向该请求提供服务所需的配置文件时出错.请检查下面的特定错误详细信息并适当地修改配置文件. 分析器错误消息: 未能加载文件或程序集"MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"或它的某一个依赖项.系统找不到指定的文件. 源错误: 行 2

求助 spring tomcat-Spring整合项目部署到服务器运行时出现的错误

问题描述 Spring整合项目部署到服务器运行时出现的错误 各位大神帮帮忙,我在把项目部署到tomcat时,运行服务器出现了这样的问题: 七月 04, 2014 4:23:45 下午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring FrameworkServlet 'dispatcher' [2014-07-04 16:23:45,162 920] [INFO ] [localhost-startSt

运行时遇到了错误。此错误的地址为 0x71621cf6,在线程 0x110 上。错误代码为 0xc0000005。

问题描述 使用线程的时候出现下面的问题:运行时遇到了错误.此错误的地址为0x71621cf6,在线程0x110上.错误代码为0xc0000005.此错误可能是CLR中的bug,或者是用户代码的不安全部分或不可验证部分中的bug.此bug的常见来源包括用户对COM-interop或PInvoke的封送处理错误,这些错误可能会损坏堆栈. 解决方案

objective-c-下载代码后运行时出现以下错误怎么解决?

问题描述 下载代码后运行时出现以下错误怎么解决? Launch screens may not use instances of IBUIStoryboardEntryPointIndicator. Launch screens may only have one top level object , which must be a UIView or a kind of UIViewcontroller. Launch screens may not use instances of IBUI

运行时遇到了错误。此错误的地址为 0x791f7e06,在线程 0xe24 上。错误代码为 0xc0000005

问题描述 运行时遇到了错误.此错误的地址为0x791f7e06,在线程0xe24上.错误代码为0xc0000005.此错误可能是CLR中的bug,或者是用户代码的不安全部分或不可验证部分中的bug.此bug的常见来源包括用户对COM-interop或PInvoke的封送处理错误,这些错误可能会损坏堆栈.汗,这是什么问题呀.见鬼. 解决方案 解决方案二:线程上的错误所导致解决方案三:不能这么用.解决方案四:比如我启动20个线程我要等待线程结束,然后弹出结束信息.用这种方式不行嘛?而且我线程中全部用

android开发教程之获取power_profile.xml文件的方法(android运行时能耗值)_Android

系统的设置–>电池–>使用情况中,统计的能耗的使用情况也是以power_profile.xml的value作为基础参数的 1.我的手机中power_profile.xml的内容: HTC t328w 复制代码 代码如下: <?xml version="1.0" encoding="utf-8"?><device name="Android">    <item name="none"&

android开发教程之获取power_profile.xml文件的方法(android运行时能耗值)

系统的设置–>电池–>使用情况中,统计的能耗的使用情况也是以power_profile.xml的value作为基础参数的 1.我的手机中power_profile.xml的内容: HTC t328w 复制代码 代码如下:<?xml version="1.0" encoding="utf-8"?><device name="Android">    <item name="none"&g