AndroidAnnotations Nothing Generated, Empty Activity

后端 未结 6 1508
不思量自难忘°
不思量自难忘° 2020-12-23 02:27

I am trying to create a project using AndroidAnnotations in Android Studio. When I build and run the project, everything seems to compile fine, yet I get nothing but a blank

6条回答
  •  清酒与你
    2020-12-23 03:03

    One possible problem is the R class is not found. Android Studio doesn't place the R.java into the gen directory by default like eclipse. The solution is to go into Project Settings -> Facets -> Select the Android facet for your project -> Compiler tab, and change the "R.java and Manifest.java files" from "Run process-resources Maven task before Make" to "Generated by IDE".

提交回复
热议问题