Android ADT version 22, R.java files not generated

前端 未结 11 1241
借酒劲吻你
借酒劲吻你 2020-12-06 16:13

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

11条回答
  •  被撕碎了的回忆
    2020-12-06 16:29

    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.

提交回复
热议问题