1

After getting a new computer and setting up eclipse again, no projects are generating the .R file. The SDK is on revision 22 which I noticed some people had issues with, but setting the Private Libraries checkbox did not resolve this.

The .R isn't generating for existing projects nor brand new empty android projects. The SDK levels between the build configurations and the manifest match.

An entire uninstall of the SDK, and redownloading the Android version of eclipse and SDK didn't work as well. Could it be something with the versions of Java installed on the machine? Or is there some other common cause of the R not generating I missed after searching?

4

2 回答 2

1

我得到了和你一样的错误。

注意: 22.0.1版本的SDK目录架构与之前有所不同。没有平台工具目录,一些命令文件移动到其他目录。但是,eclipse 和 ADT 插件没有根据 SDK 更新

因此,将相关的 bin 链接到 platform-tools 目录将起作用。

以上满足我的错误。

于 2013-07-18T05:43:06.507 回答
0

从 SDK 管理器和 Eclipse 中的 ADT 更新您的 SDK 工具,这已在最新更新 (22.0.1) 中修复

此外,更新 SDK 后,关闭并重新打开 SDK 并再次检查更新(以防您看不到 22.0.1)

在这里查看一些类似的问题Class not found error after update ADT and Android sdk tools to latest ver 22

于 2013-07-17T21:55:44.390 回答