简体   繁体   English

R.java不会以任何方式再生

[英]R.java does not regenerate in any way

I have a big project into eclipse. 我有一个进入日食的大项目。

After I upgraded from SDK manager, R.java gave problems and I deleted it. 从SDK管理器升级后,R.java给出了问题并将其删除。 Now it remains only the folder "gen" empty. 现在它仍然只是文件夹“gen”为空。

I tried, without success, these things: 我试过这些东西,但没有成功:

- clean project with and without "Build automatically", without any error (reported by eclipse) in the file inside the folder res - 使用和不使用“自动构建” 清理项目 ,文件夹res内的文件中没有任何错误(由eclipse报告)

- ctrl-shift-o - ctrl-shift-o

-remove android.import.R -remove android.import.R

- F5 - F5

space and then remove the add-in manifest 空格然后删除加载项清单

-check the PACKAGE of the project - 检查项目的包装

- restart eclipse - 重启 eclipse

- restart the pc - 重启电脑

-exclude the project from eclipse and then import it again - 从eclipse中排除项目,然后再次导入

  • .. and anything I read in these 2 DAYS ..以及我在这两天读到的任何东西

What can I do?? 我能做什么??

It happened the same thing to me yesterday. 昨天我发生了同样的事情。 I re-open the SDK Manager and suprisely some stuff in the tools folder wer'ent upgraded. 我重新打开了SDK Manager,并且很可能在工具文件夹中进行了一些升级。 Launch the SDK manager and check if you got the last revisions of this stuff. 启动SDK管理器并检查您是否获得了这些内容的最新修订版。 Then restart Eclipse and rebuild your project. 然后重启Eclipse并重建项目。

I had the same thing, did you update the SDK the last 2 days? 我有同样的事情,你最近2天更新了SDK吗? (API 17)? (API 17)? There is probably a problem with that, try updating it again, it will probably work again. 可能有一个问题,尝试再次更新它,它可能会再次工作。

If not you can try Project > Clean . 如果没有,您可以尝试Project > Clean Also the drawable and layouts mustn't contain any errors or capitals... 另外,drawable和layouts不得包含任何错误或大写字母......

Might be the same as this . 可能是同

After updating to SDK Tools to rev. 更新到SDK工具后转为rev。 22 for the first time, you may need to relaunch Android SDK Manager again and install a new item: Android SDK Build-tools . 22第一次,您可能需要重新启动Android SDK Manager并安装新项目: Android SDK Build-tools 在此输入图像描述

After installing this, clean your projects and rebuild. 安装完成后,清理项目并重建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM