02-24 09:50:34.249 19785-19785/? E/bonc_crash_log: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bonc.mobile.sh.external.sale.activity/com.bonc.mobile.sh.sale.webview.ShAppWebViewActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2872)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2937)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1645)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6451)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1134)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:210)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2947)
at android.content.res.Resources.getLayout(Resources.java:1295)
at android.view.LayoutInflater.inflate(LayoutInflater.java:424)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.bonc.mobile.plugin.webview.WebViewBaseActivity.onCreate(SourceFile:65)
at com.bonc.mobile.plugin.webview.SecondLevelWebActvity.onCreate(SourceFile:68)
at android.app.Activity.performCreate(Activity.java:6765)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122)
at cn.jiguang.a.a.d.a.a.d.callActivityOnCreate(Unknown Source)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2825)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2937)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1645)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6451)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1134)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:210)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2947)
at android.content.res.Resources.getLayout(Resources.java:1295)
at android.view.LayoutInflater.inflate(LayoutInflater.java:424)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.bonc.mobile.plugin.webview.WebViewBaseActivity.onCreate(SourceFile:65)
at com.bonc.mobile.plugin.webview.SecondLevelWebActvity.onCreate(SourceFile:68)
at android.app.Activity.performCreate(Activity.java:6765)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122)
at cn.jiguang.a.a.d.a.a.d.callActivityOnCreate(Unknown Source)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2825)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2937)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1645)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6451)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1134)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2872)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2937)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1645)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6451)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1134)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:210)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2947)
at android.content.res.Resources.getLayout(Resources.java:1295)
at android.view.LayoutInflater.inflate(LayoutInflater.java:424)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.bonc.mobile.plugin.webview.WebViewBaseActivity.onCreate(SourceFile:65)
at com.bonc.mobile.plugin.webview.SecondLevelWebActvity.onCreate(SourceFile:68)
at android.app.Activity.performCreate(Activity.java:6765)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122)
at cn.jiguang.a.a.d.a.a.d.callActivityOnCreate(Unknown Source)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2825)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2937)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1645)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6451)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1134)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:210)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2947)
at android.content.res.Resources.getLayout(Resources.java:1295)
at android.view.LayoutInflater.inflate(LayoutInflater.java:424)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.bonc.mobile.plugin.webview.WebViewBaseActivity.onCreate(SourceFile:65)
at com.bonc.mobile.plugin.webview.SecondLevelWebActvity.onCreate(SourceFile:68)
at android.app.Activity.performCreate(Activity.java:6765)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122)
at cn.jiguang.a.a.d.a.a.d.callActivityOnCreate(Unknown Source)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2825)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2937)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1645)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6451)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1134)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
解决方案 »
- android应用运行崩溃!谁能帮我看一下。
- 基于android的五子棋游戏设计与实现,有没有可以提供参考价值的案例和源码啊?我是新人,求各位精英达人指教
- android overlay
- android 让安装后的程序不在 设置->应用程序->管理应用程序 里面显示
- 安卓程序运行出错 The source attachment does not contain the source for the file
- 调用lockCanvas问题
- 关于不同尺寸的虚拟机分辨率的问题
- 通过API控制摄像头获取的视频数据非常不清晰,请教下有没其它办法可以实现
- 如何监听应用打开和退出?
- 关于ACTIVITY切换,仿酷狗效果。
- adb拒绝访问,是个什么情况
- 华为Android 8.0系统,后台服务无操作一段时间后无网络
去查查看,这个资源存在吗?或者这个资源ID和布局中的ID一致吗?
如果以上都没问题,Clean下项目再Build一次试试。