简体   繁体   中英

R.java automatically deletes

When I create any project in eclipse, R.java file is automatically generated. But the problem is that after latest adt update R.java file is deleted randomly, and the project can not be compiled. Now I notice that fragment layout and appcompact_v7 automatically created, with each individual project Please help.

当不编译R(然后将其删除)时,这是xml错误(不仅在布局文件中)和/或文件名中的无效字符(例如大写字母或-或其他无效字符)。

Please check your strings.xml file in res/values folder. If any duplicate ID's exist it will not compile. So R.java will delete automatically.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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