I have recently downloaded both the 2.3 and 3.0 SDK for Android using Eclipse.
I have also updated the ADT plug-in to 10.0.0.
However since doing this the R.java file in my project will not regenerate at all, I have tried every solution on the web that google can give me and none of them work.
So I imported my project to a different machine that only has the 2.2 SDK and an older ADT plugin installed and the R.java file regenerates fine on that machine.
Currently on my work machine I am trying to add a png to drawables but the R.java doesn't seem to pick it up meaning I cant use it in my project.
Is there something stupid that I'm missing that I should have done when I upgraded the SDK and ADT?
EDIT: R.java simply wont rebuild at all, even if I change my XML.
The issue is definitely with the 2.3 SDK or ADT 10, it works fine if I have 2.2 and ADT 9
I recently had this problem as well. In my case I had type-o in one of my resource xml config files. This error caused the resource builder to terminate and my R.java was never built. I tried to delete it first to trigger a rebuild but that did not work.
I temporarily removed the resource file causing the error and then did Project -> Clean and the R.java was correctly built again.
Not sure if will help, but it might get you going in the right direction.
Its a bug within ADT r14 and it isnt really fixed with r15 or r14. Only thing I can think is to unistall and redownload the older ver 13 and keep using the code from there.
try to clean and Build workspace from eclipse=>project->clean.
me done this it work for me..
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.