java.lang.RuntimeException: Unable to start activity ComponentInfo{bluetooth.goertek.com.voicerecognitionphone/com.baidu.voicerecognition.android.ui.BaiduASRDigitalDialog}: android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2463)
at android.app.ActivityThread.access$900(ActivityThread.java:175)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5400)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:927)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:722)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.Resources.getValue(Resources.java:1289)
at android.content.res.VivoResources.getValue(VivoResources.java:181)
at android.content.res.Resources.getDrawable(Resources.java:808)
at android.content.res.Resources.getDrawable(Resources.java:775)
at com.baidu.voicerecognition.android.ui.BaiduASRDigitalDialog.initResources(BaiduASRDigitalDialog.java:575)
at com.baidu.voicerecognition.android.ui.BaiduASRDigitalDialog.initView(BaiduASRDigitalDialog.java:292)
at com.baidu.voicerecognition.android.ui.BaiduASRDigitalDialog.onCreate(BaiduASRDigitalDialog.java:285)
at android.app.Activity.performCreate(Activity.java:6089)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1115)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2354)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2463)
at android.app.ActivityThread.access$900(ActivityThread.java:175)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5400)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:927)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:722)
楼上正解
是不是用的百度UI,这样的话layout的布局得弄进去