android神奇的“FileNotFoundException”
2013-01-05 12:28
405 查看
昨天群里没一同鞋遇到了以蛋疼的bug,且听我细细道来。
1.编译环境 :
maven
2.问题现象:
drawbable下面一张png,在2.x机器下一直报filenotfound是神马情况(E/AndroidRuntime(30508): Caused by: java.io.FileNotFoundException: res/drawable/img_line_night.png);
4.X下面都是正常的。
3.尝试方法 :
重编译,换图片,改名字 都失败了
4.解决方法 :
logcat报错报的地方不对,有个theme的属性写掉了,但是报错报在其他的文件找不到。
5.经验总结 :
有时候Android的logcat的日志所报位置不够准确,所以特殊情况需要我们对日志做更加仔细和深入的分析,不能盲目的处理,否则浪费自己大量的时间。
1.编译环境 :
maven
2.问题现象:
drawbable下面一张png,在2.x机器下一直报filenotfound是神马情况(E/AndroidRuntime(30508): Caused by: java.io.FileNotFoundException: res/drawable/img_line_night.png);
4.X下面都是正常的。
3.尝试方法 :
重编译,换图片,改名字 都失败了
4.解决方法 :
logcat报错报的地方不对,有个theme的属性写掉了,但是报错报在其他的文件找不到。
5.经验总结 :
有时候Android的logcat的日志所报位置不够准确,所以特殊情况需要我们对日志做更加仔细和深入的分析,不能盲目的处理,否则浪费自己大量的时间。
相关文章推荐
- 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开发java.io.FileNotFoundException:open failed: EACCES(Permission denied)
- keytool错误: java.io.FileNotFoundException: android.key (Permission denied)
- .FileNotFoundExceptionAndroid中的文件存储位置
- android java.io.FileNotFoundException: (Invalid argument)
- android异常:java.io.FileNotFoundException:Permission Denied
- Caused by: android.content.res.Resources$NotFoundException: File res/drawable-mdpi/
- Android java.io.FileNotFoundException: open failed: EACCES (Permission denied) 问题未解决!!
- FileNotFoundExceptionLibrary/Caches/AndroidStudio2.2/caches/contentHashes.dat.keystream.len (No such
- Android下载文件提示文件不存在。。。 java.io.FileNotFoundException
- FileNotFoundException on proguard-android.txt file
- java.io.FileNotFoundException on Android, open failed: ENOENT (No such file or directory)
- android或者java 打开文件出现java.io.FileNotFoundException的解决方案
- android 开发上传图片遇到返回 FileNotFoundException
- Android java.io.FileNotFoundException on Android, open failed: ENOENT (No such file or directory)
- keytool 错误: java.io.FileNotFoundException: MyAndroidKey.keystore (拒绝访问).
- Caused by: android.content.res.Resources$NotFoundException: File res/drawable/main_tab_conversation_
- Android在文件操作时出现java.io.FileNotFoundException
- android错误之 Caused by: android.content.res.Resources$NotFoundException: File res/anim/snailanim.xml f