Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse stop generating R.java

Today, I update ADT to 22.0.1.v201305230001--685705, and found that Eclipse stopped generating R.java. I believed that it is problem of Eclipse, because I create a whole new clean android project, and I cannot even run it as android application. I cannot find any files under gen folder.
The version of Eclipse is 4.2.2, is there any way to solve it?

I try to use Eclipse 4.3 with the latest version ADT, but the problem is still there.

like image 266
Wei-Tsung Avatar asked Dec 20 '22 03:12

Wei-Tsung


2 Answers

I had the same problem.

Open up the android SDK Manager, and install the new android build tools. Without this you will no longer be able to build anything.

For some reason they have seperated them, and a lot of people are not noticing.

enter image description here

like image 62
IAmGroot Avatar answered Dec 29 '22 19:12

IAmGroot


Try deleting bin folder and clean the project..and In Eclipse, under the Project menu, is an option build automatically. That would help you build the R.java file everytime modifications are made. The Clean... option is also there under Project It seems to be a common issue with many different answers

like image 31
KOTIOS Avatar answered Dec 29 '22 20:12

KOTIOS