简体   繁体   English

Android中缺少R.java

[英]R.java missing in Android

Okay so I'm using Juno and my gen folder does not have R.java. 好的,所以我正在使用Juno,并且我的gen文件夹没有R.java。 I tried the following steps: 我尝试了以下步骤:

Clean the project(10 times). 清洁项目(10次)。 Fix Project Properties. 修复项目属性。 Check for errors in my xml files. 检查我的xml文件中的错误。 Checked Android 4.2.2 in Porperties->Android. 在Porperties-> Android中检查了Android 4.2.2。

I know there has been a lot of discussion on this but none of them work for me. 我知道对此进行了很多讨论,但没有一个对我有用。 Is there anything else I can try to generate my R.java? 我还能尝试生成R.java吗? Please help. 请帮忙。

You mentioned you updated your ADT, did you try to change the API level for your emulator? 您提到您更新了ADT,是否尝试更改模拟器的API级别? My problem was similar, and I was trying to use level 8 and the libraries I was using required level 11 so went one by one until I figured out which one to use. 我的问题是相似的,我试图使用8级,而我正在使用所需的11级库,所以一一逐一解决,直到弄清楚要使用哪一个。

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

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