Problem Description:
The first problem encountered is the selection of the ADT version, the selection of the SDK version:
ADT chose the newest ADT-22.3.0 as a non-white friend, and I also updated the SDK to the latest (well, this is Fanqiang, or looking for an offline package). Very happy Ah, think can start, so new Android project, next--"next ... finish! Project Generation! (Of course to fill in the middle of things)
The project was built, and it was discovered that eclipse automatically generated a strange project Appcompat_v7 Project, and then when creating an Android project, there would be another appcompat_v7_2, if created again, The "Extra items" in the appcompat_v7_x format are then created (this happens after ADT is upgraded to a 22.6.x version, not before 22.3.x). Virgo I looked very awkward, so Baidu Google all kinds of search Ah, finally found the reason.
Cause of the problem:
ADT did not appear before the 22.3.x version, and after the upgrade to 22.6.x version, it is not possible to guess that the new version is causing the situation. Guess the reason after you can analyze the next appcompat_v7 is used to do what, expand the APPCOMPAT_V7 project, will find a Readme.txt file, double-click to view, the file is described as follows:
Library Project including compatibility ActionBar.
This can is used by a Android project to provide
Access to ActionBar the applications running on API 7+.
There is technically no source, but the src folder isnecessary
To ensure that the build system works. Thecontent is actually
Located in Libs/android-support-v7-appcompat.jar.
The accompanying resources must also is included in Theapplication.
The literal meaning probably can be seen, the project is a library project, the role is to let your Android project in api7+ The SDK version (i.e. the Android2.1 version) can access the Actionbar Api,actionbar equivalent to the user interface of the action bar, the specific Actionbar explanation can be consulted: http://developer.android.com/ Guide/topics/ui/actionbar.html. So you can see that this project is more compatible with the lower version of the SDK
Workaround:
Method one, because this project is to be compatible with the low version of the SDK generated, so long as the new project when the minimum version is selected as Android4.0 or more;
Method Two, not in the ADT update to the 22.6.x version of the code appears, before 22.3.x version will not have, good then discard the new version, replace the old version 22.3.x.
Of course, the problem will not be so easy to end, next again.
Reference:
Http://blog.sina.com.cn/s/blog_9653ee0f0101jeaf.html
"Side do project side learn Android" small White will encounter problems--appcompat_v7 problems