These days by eclipse whole cry, also blame oneself hand cheap appcompat_v7 to delete.
Eclipse Creation Project If it is compatible below 4.0, it will generate more than one project APPCOMPAT_V7, such as:
This project will be referenced to your target project as a compatibility package and cannot be deleted.
If it is deleted, the R file cannot be generated, and hundreds of errors will run out.
The properties->android of the right-hand side of the project becomes, like, a red fork:
Workaround:
1, if you delete appcompat_v7, did not choose this
,
Then go to the hard drive to completely delete the appcompat_v7;
2, in the work space to create a new project, compatible with the minimum version to maintain the same, so that the workspace will generate a appcompat_v7;
3, the original project right button properties->android, the Red Fork remove, and then add one; The results are as follows:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android Eclipse can't generate R file