2

I am trying to run the AnimationsDemo from the android developers website:

http://developer.android.com/training/animation/zoom.html

But I can't manage to compile it. I keep getting an error with the R.java file as it is not being generated. Hence, in all the Activity classes I get an error saying "R cannot be resolved into a variable).

I also have errors in the manifest file saying:

"error: No resource identifier found for attribute 'parentActivityName' in package 'android'"

It seems like it cannot find the any of the activity classes found in R.Layout. I did NOT import the "android.R" file so I know that's not the issue. I haven't really touched the code, so I can't figure out why it's complaining.

4

2 回答 2

2

错误:在包“android”中找不到属性“parentActivityName”的资源标识符

这通常意味着您的构建目标(例如,Eclipse 中的 Project > Properties > Android)设置得太低。尝试将其提高到更高的 API 级别——14 或更高应该可以工作。根据您安装的内容,您可能需要通过 SDK 管理器下载其他 API 级别。

于 2013-09-08T21:35:24.640 回答
-1

您需要更新 xml 布局文件和活动类。还共享共同的特征,如背景、字体和方案。等等。

于 2013-09-08T21:40:11.000 回答