R.java is missing after updating ADT to 22.0.1

I know that this problem was discussed in Eclipse giving an error, missing R.java file after a recent update and R.java is not generated after the ADT update, "but I still can’t get it working.

My R.java file was not generated, and I was looking for answers here, but none of the answers worked. Everything worked fine before I updated ADT, so the code should be fine. This is what I tried:

  • I have no "import android.R".
  • In "Project" -tab β†’ "Build Automatically" is checked.
  • I cleaned up the project and restarted eclipse several times.
  • I downloaded Android SDK Tools (22.0.1), Android SDK Platform Tools (Rev.17) and Android SKD Build-tools (Rev. 17).
  • I started a new "Project for Android" and "Hello World", but the problem persists, which means that with my * .xml.
  • I tried changing my project -> "Android Tools" β†’ "Fix Project Properties".
  • I went to the "properties" of my project β†’ "Java Build Path" β†’ "Order and Export", where everything is checked and in that order: "src", "gen", "Android Private Libraries", "Android Dependencies", "Android 4.2.2 "and two endpoint libraries (I work with App Engine).
  • I updated eclipse in "Help" -tab β†’ "Check for Updates" and "No Updates Found" (I am running Eclipse Juno SR2).
  • I installed the new software in "Help" -tab β†’ "Install new software" from " http://dl-ssl.google.com/android/eclipse/ " and " http://dl.google.com/eclipse /plugin/4.2 ".
  • In "project.properties" target = android-17 and in the "manifest" of android: targetSdkVersion = "17".

What should I do? Please help me here!

+7
source share
1 answer

Check Java compliance level at 1.6

Window- * Preferences * -Java Compiler

Select Compiler Compliance Level: 1.6

Also check the problem window to see if your layouts (or another area) are displayed, and this prevents the compiler from creating the file.

Check window of problems Alt + Shift + Q, X

A message as it can help others.

+1
source

All Articles