My Android application uses AndroidAnnotations and works fine in debug mode but when I try to Export the Signed Application package, the wizard finishes successfully and creates the APK but the app crashes as soon as it starts with a Runtime Exception: Unresolved compilation problems. The activity that is not found is one generated by AndroidAnnotations.
I already tried all the suggested solutions like Project Clean and delete the gen folder and run the Export wizard again, no luck so far.
09-08 18:23:57.744: E/AndroidRuntime(11547): java.lang.Error: Unresolved compilation problems:
09-08 18:23:57.744: E/AndroidRuntime(11547): The import com.oneworld.poller.activity.account.CreateAccountActivity_ cannot be resolved
I figured the only way to solve this reliably was by refactoring the code and change the class references to use the fully qualified name instead of declaring an import.
This makes some lines of code a bit long but has the benefit to also address this other issue mentioned in the Android Annotations FAQ: https://github.com/excilys/androidannotations/wiki/FAQ#wiki-import