The Eclipse project requires a compilation error during the migration to Android studio:
The Eclipse project has a complex structure, referencing other projects and encountering errors during the migration process.
@ViewInject (r.id.edittext_bbs_send_title) Private EditText Edtitle;
The error prompts are as follows:
Error:attribute value must be constant
Reason: Reference https://github.com/excilys/androidannotations/wiki/Library-projects
The simple way to get a resource ID in the form of a comment is that this resource is static final, and in Android Studio project, if it is in Lib, the resource file is not static final, so there will be a problem.
My project uses the registration code is not in the Lib, then also appears this problem, later found that the error module, although not LIB, but it is dependent on the Lib module, so there will be problems, the solution is to eliminate the dependency of the error, the problem is resolved naturally.
Android Studio Import Eclipse Project (referencing multiple other projects)