开发者

res file not found exception

开发者 https://www.devze.com 2022-12-28 06:53 出处:网络
I am getting this \"java.io.FileNotFoundException: res/drawable-nodpi/background.xml\". But I do have a file in

I am getting this "java.io.FileNotFoundException: res/drawable-nodpi/background.xml". But I do have a file in

$

 ls -la res/drawable-nodpi/background.xml 
-rw-r--r--  1 michael  staff  859 Mar  8 09:28 res/drawable-nodpi/background.xml


E/AndroidRuntime(  301): Caused by: java.io.FileNotFoundException: res/drawable-nodpi/background.xml
E/AndroidRuntime(  301):        at android.content.res.AssetMa开发者_StackOverflow中文版nager.openXmlAssetNative(Native Method)
E/AndroidRuntime(  301):        at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:469)
E/AndroidRuntime(  301):        at android.content.res.Resources.loadXmlResourceParser(Resources.java:1894)


As far as I know, the drawable-nodpi folder is for pre-scaling of images. I would suggest putting it in the drawable folder.

If that doesn't help, try cleaning your project and take a look at the gen/your_package/R.Java to see if the file is indeed included in the package.

0

精彩评论

暂无评论...
验证码 换一张
取 消