我不断收到FileNotFound异常,坦率地说,它没有任何意义。下面是我的文件:Android的FileNotFound在drawable-hdpi文件夹中的custom.xml异常
custom.xml
<item android:drawable="@drawable/easymode"></item>
main.xml中
<Button android:id="@+id/guess"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="20dp"
android:layout_marginBottom="20dp"
android:onClick="myClickHandler"
android:background="@drawable/custom"></Button>
我已经试过移动比别人高的背景标签,看看是否是导致它失败,它不起作用。我已将custom.xml文件移动到可绘制文件夹中,并移入ldpi和mdpi文件夹中,但它一直给我提供相同的错误。为什么找不到我的custom.xml文件? R.java也列出了它,所以我知道它已经成功地生成了链接...帮助!
你可以发布你的整个custom.xml吗?我猜想你的一个xml文件没有编译,导致R文件无法正确构建 – ByteMe 2012-03-05 22:28:38