<?xml version="1.0" encoding="utf-8"?>
<ImageView  xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/icon"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" 
    android:adjustViewBounds="true"
    android:src="@drawable/jm"    
</ImageView>
Failed to convert @drawable/jm into a drawable
Couldn't resolve resource @drawable/jm
Exception details are logged in Window > Show View > Error Log

解决方案 »

  1.   

    <?xml version="1.0" encoding="utf-8"?>
    <ImageView xmlns:android="http://schemas.android.com/apk/res/android"
    //应该问题出在这里
      android:id="@+id/icon"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"  
      android:adjustViewBounds="true"
      android:src="@drawable/jm"
    </ImageView>
      

  2.   

    很明显jm没有
    1.检查项目里有没有jm图片。
    2.检查R.java有没有jm字段,没有的话,删除gen目录,重新生成。
      

  3.   

    Failed to convert @drawable/jm into a drawable
    你的jm是xml还是一个图片如果是一个xml,检查xml是都有错误,如果是图片,检查是不是图片被损坏,是否存在等问题