Android R.java does not generate

I just updated the Android SDK to version 22.0 (well, rather, like a new version) and started a new project in Eclipse. I went through the project wizard, and everything went well, but then I realized that it does not generate assembly files (neither BuildConfig.java, nor R.java).

I searched a bit and found others with similar problems, and someone noticed that Android Build Tools should be available after updating the new package. I also installed them and then BuildConfig.java, but I still don't have R.java.

Some suggested clearing the project, editing the manifest files and manually adding the R.java file so that it returned back to the generated one, but none of them worked, although it displayed a warning message in the IDE console when I edited the file, but in fact it Did not do anything

+4
source share
2 answers
  • Go to Windows->Android SDK Manager
  • Download or update the Android SDK Build-tools

  • Open project properties

  • In the right pane, select Java Build Path
  • In the left pane, make sure Android Private Libraries and Android Dependencies .
  • Clean and rebuild project
+5
source

Try restarting the IDE and creating a new project

0
source

Source: https://habr.com/ru/post/1481611/


All Articles