You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Save the file (Eclipse will compile it, and generate a subclass of MyActivity, named MyActivity_). In IntelliJ / Android Studio, click Make to generate.
Register MyActivity_ instead of MyActivity in your manifest :
<activityandroid:name=".MyActivity_" />
The AndroidManifest.xml
You should always register your activity with an _ suffix in the Android Manifest.
This is because AndroidAnnotations generates a subclass for each annotated activity. It has the same package and name, plus an _ suffix.
AndroidAnnotations will tell you if you forget to register your activities in the AndroidManifest.xml.
Finding the AndroidManifest.xml
AndroidAnnotations finds the AndroidManifest.xml file by recursively going up from the generated source folder.
Since AndroidAnnotations 2.7
If this doesn't fit your project structure, you can specify the absolute path to the AndroidManifest.xml by giving an androidManifestFile option to the processor.
With javac, just pass the following option: -AandroidManifestFile=/path/to/AndroidManifest.xml
With Eclipse, go to Properties > Java Compiler > Annotation Processing and add an entry to Processor options.