File res/drawable/abc_vector_test.xml from drawable resource ID
2017-04-01 13:35
561 查看
问题
在测试手机4.1.2版本上运行项目,直接崩溃报了标题所述错误。但是运行在6.0版本上的手机上却正常。很多人按如下方法试了,一半的人能解决问题,一半解决不了。
http://blog.csdn.net/onepiece2/article/details/53169427
http://blog.csdn.net/space0o0/article/details/52878080?locationNum=8&fps=1
http://stackoverflow.com/questions/39419596/resourcesnotfoundexception-file-res-drawable-abc-ic-ab-back-material-xml
解决
所以虽然报了同样的错误消息。但是报错的原因应该不是同一个。我按照上面的方法也没有解决问题。后来发现我的是因为自己写的Activity继承了AppCompatActivity报的错,如果没必要继承AppCompatActivity,改成继承Activity即可解决问题。相关文章推荐
- 华为手机碰到的问题记录-NotFoundException: File res/drawable/abc_vector_test.xml from drawable resource ID
- NotFoundException: File res/drawable/abc_vector_test.xml from drawable resourceID
- File res/drawable/abc_vector_test.xml from drawable resource ID
- Android开发 Resources$NotFoundException: File res/drawable/abc_vector_test.xml from xml
- Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abc_vector_test.xml fr
- android.content.res.Resources$NotFoundException: File res/drawable/*.xml from drawable resource ID
- NotFoundException: File res/drawable/abc_ic_ab_back_material.xml from drawable resource
- Exception android.content.res.Resources$NotFoundException: File res/drawable/my.xml from drawable re
- Android:File res/drawable/abc_vector_test.xml from drawable resource ID #0x7f02004f解决办法
- How can i specify the resource to get from R.res.drawable dynamically?
- java.io.FileNotFoundException: class path resource [bean/test/User.hbm.xml] cannot be opened because it does not exist
- ssh整合是Caused by: java.io.FileNotFoundException: class path resource [bean/test/User.hbm.xml] cannot
- [糊里糊涂解决] android.content.res.Resources$NotFoundException: File res/drawable/selector_edit.xml fro
- File res/drawable-xxhdpi-v4/title_bg.9.png from drawable resource ID #0x7f02
- tomcat错误:java.io.FileNotFoundException: Could not resolve XML resource [null] with public ID [null]
- 【BUG】android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi/toolbar_line.png from
- java.io.FileNotFoundException: Could not resolve XML resource [null] with public ID [null], system I
- 【BUG】android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi/toolbar_line.png from
- [iOS开发站在巨人肩膀上]之iPhone Images from URL using XML File
- Could not read mappings from resource: hiber.hbm.xml