Error

Caused by: android.content.res.Resources$NotFoundException: File sbdf from xml type layout resource ID #0x7f040002

Caused by: java.io.FileNotFoundException: sbdf

程序启动时错误排查:

1.

在Manifest.xml中查看Activity的名字是否书写正确。

2.

在Manifest.xml确认Activity标签中的android:name属性的格式,例如我的activity的名字是hello,确认android:name=”.hello”(其中的点很重要)。

3.

如果有添加外部包的情况下,在工程根目录下建libs目录,然后将需要导入的外部包放入此目录内再add jars。

4.

如果上面都确保OK的情况下仍发生问题的话,关闭adb进程树--> 重启eclipse

原文地址:https://www.cnblogs.com/zj98/p/6897981.html