我最近试图学习Android开发,我遇到了两个问题。他们是
Failed to convert @drawable/backround.png into a drawable
Couldn't resolve resource @drawable/backround.png这是我的XML文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:background="@drawable/backround.png"
android:layout_height="fill_parent"
android:orientation="vertical" >
</LinearLayout>发布于 2015-04-26 14:22:02
Restart Eclipse (不幸的是),这个问题就会消失。
(Android Studio: File --> Invalidate caches/Restart... )
这个问题:Android: failed to convert @drawable/picture into a drawable
发布于 2014-02-04 11:51:01
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:background="@drawable/backround"
android:layout_height="fill_parent"
android:orientation="vertical" > </LinearLayout>这里不需要扩展。只需提及名称而不带扩展名
发布于 2014-02-04 11:51:34
用background替换background.png
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:background="@drawable/backround"
android:layout_height="fill_parent"
android:orientation="vertical" >
</LinearLayout>https://stackoverflow.com/questions/21542573
复制相似问题