0

我创建源文件:loadanim.xml:

<?xml version="1.0" encoding="utf-8" ?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/abc1" android:duration="60" />
    <item android:drawable="@drawable/abc2" android:duration="60" />
</animation-list>

当我建造时,R 不是自动生成的。混乱错误:R无法解决....但是当我<item>在文件中清除时:

<?xml version="1.0" encoding="utf-8" ?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android">
//Clear
</animation-list>

并建立 >> 类 R 创建。现在,我能做到吗?太糟了 ...

4

2 回答 2

0

只需检查可绘制对象是否存在以及是否正确命名它们(abc1 等,)如果是,则清理项目并重建。

于 2012-06-19T05:12:27.780 回答
0

应用程序中的某些资源可能有一些错误,检查错误,通过eclipse menu-> windows-> show view-> Error Log and questions,你可以看到错误。

于 2012-06-19T04:47:16.510 回答