Android .R不生成 - 检查所有常见原因 [英] Android .R not generating - checked all common causes

查看:151
本文介绍了Android .R不生成 - 检查所有常见原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在获取新计算机并再次设置eclipse之后,没有任何项目生成.R文件。 SDK在修订22中,我注意到有些人遇到问题,但设置私人库复选框未能解决此问题。



.R不是为现有项目生成的,也不是全新的空的Android项目。构建配置和清单之间的SDK级别匹配。



完全卸载SDK,重新加载Android版本的eclipse和SDK也不起作用。它可以在机器上安装的Java版本吗?还是还有一些其他常见的原因,R没有产生我错过了搜索?

解决方案

从SDK经理和ADT在eclipse更新SDK Tools,这是在最新的更新(22.0.1)另外,在您更新SDK后,关闭并重新打开SDK并重新检查更新(如果没有看到22.0.1)



在这里查看一些类似的问题将ADT和Android sdk工具更新到最新版本22后,找不到错误


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?

解决方案

Update your SDK Tools from the SDK manager and ADT in eclipse, this was fixed in the latest update (22.0.1)

Also, after you update your SDK, close and reopen the SDK and check for updates again (in case you don't see 22.0.1)

Take a look here for some similar issues Class not found error after updating ADT and Android sdk tools to latest ver 22

这篇关于Android .R不生成 - 检查所有常见原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆