After upgrading to Android ADT version 22 and cleaning my project, the R.java files went missing. I can\'t use setViewContent(R.layout.activity_main) because the activity ca
Android SDK now has a special package: Build Tools. It was not present in earlier SDK versions, and seems like it MUST be installed in order to generate those R files. It is now the one package that does that stuff. (And probably everything else regarding building for Android). So, if you not have that installed (and you will likely not have if you just upgraded the SDK), it's like missing a compiler - you can't ever expect your code to be compiled if there is no compiler.