简体   繁体   English

R.Java没有生成任何android项目,即使它是新的

[英]R.Java not generating on any android project, even if it's new

R.Java not generating on any android project, even if it's new. R.Java没有生成任何android项目,即使它是新的。 "R cannot be resolved to a variable" I re-installed Eclipse, I created new projects. “R无法解析为变量”我重新安装了Eclipse,我创建了新项目。 No matter what I do, it ALWAYS happens. 无论我做什么,它总是会发生。 They are new files. 它们是新文件。 That mean there are no errors in the .xml files. 这意味着.xml文件中没有错误。 Clean build does nothing. 清洁构建什么都不做。

I have installed the android-sdk. 我已经安装了android-sdk。 I have created an android project. 我创建了一个android项目。 The project is set to build automatically 该项目设置为自动构建

Are you using any Libs? 你在使用任何Libs吗? Sometimes when they have errors, it screws your R.java up (I had this with ABS recently). 有时当他们有错误时,它会将你的R.java搞砸(最近我用ABS了)。

Okay, I found out the issue. 好的,我发现了这个问题。 What happened was that while there were no XML errors in MY projects, there were a few in a library I was using. 发生的事情是,虽然我的项目中没有XML错误,但我正在使用的库中有一些错误。 That completely destroyed the R.Java's ability to autogenerate. 这完全破坏了R.Java自动生成的能力。

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

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