Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 充气异常错误充气类单选按钮_Android_Xml_Android Layout - Fatal编程技术网

Android 充气异常错误充气类单选按钮

Android 充气异常错误充气类单选按钮,android,xml,android-layout,Android,Xml,Android Layout,我的应用程序中出现错误。我检查了firebase crashlytics,stacktrace告诉我打开radiobutton时出错。困难的部分是,这影响了非常少的用户(7k中只有5-6个用户)。手机型号为:vivo1724和Xiaomi。我曾尝试在多台设备上运行我的应用程序(大约10-12台设备;低端到高端机型),但无法模拟崩溃。 以下是崩溃日志: Fatal Exception: java.lang.RuntimeException: Unable to start activity Com

我的应用程序中出现错误。我检查了firebase crashlytics,stacktrace告诉我打开radiobutton时出错。困难的部分是,这影响了非常少的用户(7k中只有5-6个用户)。手机型号为:
vivo1724
Xiaomi
。我曾尝试在多台设备上运行我的应用程序(大约10-12台设备;低端到高端机型),但无法模拟崩溃。 以下是崩溃日志:

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{.HomeActivity}: android.view.InflateException: Binary XML file line #13: Binary XML file line #749: Error inflating class RadioButton
       at android.app.ActivityThread.performLaunchActivity + 2946(ActivityThread.java:2946)
       at android.app.ActivityThread.handleLaunchActivity + 3024(ActivityThread.java:3024)
       at android.app.ActivityThread.-wrap11(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage + 1725(ActivityThread.java:1725)
       at android.os.Handler.dispatchMessage + 106(Handler.java:106)
       at android.os.Looper.loop + 192(Looper.java:192)
       at android.app.ActivityThread.main + 6760(ActivityThread.java:6760)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 438(RuntimeInit.java:438)
       at com.android.internal.os.ZygoteInit.main + 826(ZygoteInit.java:826)
Caused by android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f080074
       at android.content.res.ResourcesImpl.getResourceName + 287(ResourcesImpl.java:287)
       at android.content.res.ResourcesImpl.loadDrawableForCookie + 884(ResourcesImpl.java:884)
       at android.content.res.ResourcesImpl.loadDrawable + 754(ResourcesImpl.java:754)
       at android.content.res.Resources.loadDrawable + 922(Resources.java:922)
       at android.content.res.TypedArray.getDrawableForDensity + 953(TypedArray.java:953)
       at android.content.res.TypedArray.getDrawable + 928(TypedArray.java:928)
       at android.widget.TextView.<init> + 1077(TextView.java:1077)
       at android.widget.Button.<init> + 166(Button.java:166)
       at android.widget.CompoundButton.<init> + 94(CompoundButton.java:94)
       at android.widget.RadioButton.<init> + 63(RadioButton.java:63)
       at android.widget.RadioButton.<init> + 59(RadioButton.java:59)
       at android.support.v7.widget.AppCompatRadioButton.<init> + 4(AppCompatRadioButton.java:4)
       at android.support.v7.widget.AppCompatRadioButton.<init> + 2(AppCompatRadioButton.java:2)
       at android.support.v7.app.AppCompatViewInflater.createRadioButton + 2(AppCompatViewInflater.java:2)
       at android.support.v7.app.AppCompatViewInflater.createView + 204(AppCompatViewInflater.java:204)
       at android.support.v7.app.AppCompatDelegateImpl.a + 140(AppCompatDelegateImpl.java:140)
       at android.support.v7.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java)
       at android.view.LayoutInflater.createViewFromTag + 817(LayoutInflater.java:817)
       at android.view.LayoutInflater.createViewFromTag + 775(LayoutInflater.java:775)
       at android.view.LayoutInflater.rInflate + 908(LayoutInflater.java:908)
       at android.view.LayoutInflater.rInflateChildren + 869(LayoutInflater.java:869)
       at android.view.LayoutInflater.rInflate + 911(LayoutInflater.java:911)
       at android.view.LayoutInflater.rInflateChildren + 869(LayoutInflater.java:869)
       at android.view.LayoutInflater.rInflate + 911(LayoutInflater.java:911)
       at android.view.LayoutInflater.rInflateChildren + 869(LayoutInflater.java:869)
       at android.view.LayoutInflater.rInflate + 911(LayoutInflater.java:911)
       at android.view.LayoutInflater.rInflateChildren + 869(LayoutInflater.java:869)
       at android.view.LayoutInflater.parseInclude + 1040(LayoutInflater.java:1040)
       at android.view.LayoutInflater.rInflate + 904(LayoutInflater.java:904)
       at android.view.LayoutInflater.rInflateChildren + 869(LayoutInflater.java:869)
       at android.view.LayoutInflater.inflate + 521(LayoutInflater.java:521)
       at android.view.LayoutInflater.inflate + 429(LayoutInflater.java:429)
       at android.view.LayoutInflater.inflate + 380(LayoutInflater.java:380)
       at android.support.v7.app.AppCompatDelegateImpl.c + 23(AppCompatDelegateImpl.java:23)
       at android.support.v7.app.AppCompatActivity.setContentView + 4(AppCompatActivity.java:4)
       at org.makkhay.makkhayDic.Controller.HomeActivity.onCreate + 9(HomeActivity.java:9)
       at android.app.Activity.performCreate + 7115(Activity.java:7115)
       at android.app.Activity.performCreate + 7106(Activity.java:7106)
       at android.app.Instrumentation.callActivityOnCreate + 1220(Instrumentation.java:1220)
       at android.app.ActivityThread.performLaunchActivity + 2899(ActivityThread.java:2899)
       at android.app.ActivityThread.handleLaunchActivity + 3024(ActivityThread.java:3024)
       at android.app.ActivityThread.-wrap11(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage + 1725(ActivityThread.java:1725)
       at android.os.Handler.dispatchMessage + 106(Handler.java:106)
       at android.os.Looper.loop + 192(Looper.java:192)
       at android.app.ActivityThread.main + 6760(ActivityThread.java:6760)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 438(RuntimeInit.java:438)
       at com.android.internal.os.ZygoteInit.main + 826(ZygoteInit.java:826)
我还有一份事故日志:

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{.HomeActivity}: android.view.InflateException: Binary XML file line #13: Binary XML file line #749: Error inflating class RadioButton
       at android.app.ActivityThread.performLaunchActivity + 2946(ActivityThread.java:2946)
       at android.app.ActivityThread.handleLaunchActivity + 3024(ActivityThread.java:3024)
       at android.app.ActivityThread.-wrap11(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage + 1725(ActivityThread.java:1725)
       at android.os.Handler.dispatchMessage + 106(Handler.java:106)
       at android.os.Looper.loop + 192(Looper.java:192)
       at android.app.ActivityThread.main + 6760(ActivityThread.java:6760)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 438(RuntimeInit.java:438)
       at com.android.internal.os.ZygoteInit.main + 826(ZygoteInit.java:826)
Caused by android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f080074
       at android.content.res.ResourcesImpl.getResourceName + 287(ResourcesImpl.java:287)
       at android.content.res.ResourcesImpl.loadDrawableForCookie + 884(ResourcesImpl.java:884)
       at android.content.res.ResourcesImpl.loadDrawable + 754(ResourcesImpl.java:754)
       at android.content.res.Resources.loadDrawable + 922(Resources.java:922)
       at android.content.res.TypedArray.getDrawableForDensity + 953(TypedArray.java:953)
       at android.content.res.TypedArray.getDrawable + 928(TypedArray.java:928)
       at android.widget.TextView.<init> + 1077(TextView.java:1077)
       at android.widget.Button.<init> + 166(Button.java:166)
       at android.widget.CompoundButton.<init> + 94(CompoundButton.java:94)
       at android.widget.RadioButton.<init> + 63(RadioButton.java:63)
       at android.widget.RadioButton.<init> + 59(RadioButton.java:59)
       at android.support.v7.widget.AppCompatRadioButton.<init> + 4(AppCompatRadioButton.java:4)
       at android.support.v7.widget.AppCompatRadioButton.<init> + 2(AppCompatRadioButton.java:2)
       at android.support.v7.app.AppCompatViewInflater.createRadioButton + 2(AppCompatViewInflater.java:2)
       at android.support.v7.app.AppCompatViewInflater.createView + 204(AppCompatViewInflater.java:204)
       at android.support.v7.app.AppCompatDelegateImpl.a + 140(AppCompatDelegateImpl.java:140)
       at android.support.v7.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java)
       at android.view.LayoutInflater.createViewFromTag + 817(LayoutInflater.java:817)
       at android.view.LayoutInflater.createViewFromTag + 775(LayoutInflater.java:775)
       at android.view.LayoutInflater.rInflate + 908(LayoutInflater.java:908)
       at android.view.LayoutInflater.rInflateChildren + 869(LayoutInflater.java:869)
       at android.view.LayoutInflater.rInflate + 911(LayoutInflater.java:911)
       at android.view.LayoutInflater.rInflateChildren + 869(LayoutInflater.java:869)
       at android.view.LayoutInflater.rInflate + 911(LayoutInflater.java:911)
       at android.view.LayoutInflater.rInflateChildren + 869(LayoutInflater.java:869)
       at android.view.LayoutInflater.rInflate + 911(LayoutInflater.java:911)
       at android.view.LayoutInflater.rInflateChildren + 869(LayoutInflater.java:869)
       at android.view.LayoutInflater.parseInclude + 1040(LayoutInflater.java:1040)
       at android.view.LayoutInflater.rInflate + 904(LayoutInflater.java:904)
       at android.view.LayoutInflater.rInflateChildren + 869(LayoutInflater.java:869)
       at android.view.LayoutInflater.inflate + 521(LayoutInflater.java:521)
       at android.view.LayoutInflater.inflate + 429(LayoutInflater.java:429)
       at android.view.LayoutInflater.inflate + 380(LayoutInflater.java:380)
       at android.support.v7.app.AppCompatDelegateImpl.c + 23(AppCompatDelegateImpl.java:23)
       at android.support.v7.app.AppCompatActivity.setContentView + 4(AppCompatActivity.java:4)
       at org.makkhay.makkhayDic.Controller.HomeActivity.onCreate + 9(HomeActivity.java:9)
       at android.app.Activity.performCreate + 7115(Activity.java:7115)
       at android.app.Activity.performCreate + 7106(Activity.java:7106)
       at android.app.Instrumentation.callActivityOnCreate + 1220(Instrumentation.java:1220)
       at android.app.ActivityThread.performLaunchActivity + 2899(ActivityThread.java:2899)
       at android.app.ActivityThread.handleLaunchActivity + 3024(ActivityThread.java:3024)
       at android.app.ActivityThread.-wrap11(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage + 1725(ActivityThread.java:1725)
       at android.os.Handler.dispatchMessage + 106(Handler.java:106)
       at android.os.Looper.loop + 192(Looper.java:192)
       at android.app.ActivityThread.main + 6760(ActivityThread.java:6760)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 438(RuntimeInit.java:438)
       at com.android.internal.os.ZygoteInit.main + 826(ZygoteInit.java:826)

提前感谢。:)

我尝试了各种可能的调试方法,最后,我无意中发帖,发现这个问题是因为用户端加载了我的应用程序。为了缓解这个问题,我跟随谷歌文档了解了如何验证非谷歌play应用程序的安装。这是你想要查看的情况

我尝试了各种可能的调试方法,最后,我无意中发帖,发现这个问题是因为用户端加载了我的应用程序。为了缓解这个问题,我跟随谷歌文档了解了如何验证非谷歌play应用程序的安装。这是你想要查看的情况

你能分享完整的xml和java代码吗?因为在我的例子中,它工作得很好。这次崩溃只影响了少数用户。手机型号为:
vivo1724
Xiaomi
也有此问题,您有没有找到其他解决方案?我不认为我们的应用程序是站在一边的-loaded@a_local_nobody,我现在记不太清楚了,但我想我从Bundle切换回了Apk,并在我的应用程序中进行了侧负载检查。崩溃现在消失了。你能分享完整的xml和java代码吗?因为在我的例子中,它工作得很好。是的,它工作得很好。这次崩溃只影响了少数用户。手机型号为:
vivo1724
Xiaomi
也有此问题,您有没有找到其他解决方案?我不认为我们的应用程序是站在一边的-loaded@a_local_nobody,我现在记不太清楚了,但我想我从Bundle切换回了Apk,并在我的应用程序中进行了侧负载检查。车祸现在已经过去了。