Description of the problem:
The first problem encountered is the selection of the ADT version number, the selection of the SDK version number:
ADT According to non-small white friends to choose the latest ADT-22.3.0, at the same time I also updated the SDK to the latest (uh. This should be Fanqiang, or find an offline package).
Very happy Ah, think can start. Then create a 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 itself generated a strange project Appcompat_v7 Project, and then when creating an Android project, there would be another appcompat_v7_2, assuming that it was created again, The "Extra items" in the appcompat_v7_x format are then created (this occurs after ADT is upgraded to the 22.6.x version number, and the version number before 22.3.x is not available). Virgo I looked very awkward, so Baidu Google all kinds of search Ah, finally found the reason.
Cause of the problem:
ADT does not appear before the 22.3.x version number, after upgrading to the 22.6.x version number. Before the situation occurs, the ability to extrapolate is caused by the new version number. After the reason can be analyzed to 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 it. The descriptive narrative of the document is 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, and the role is to get your Android project in api7+ The SDK version number (that is, the Android2.1 version number) to access the Actionbar Api,actionbar equivalent to the user interface of the action Bar, detailed Actionbar explanation can participate in: http://developer.android.com/ Guide/topics/ui/actionbar.html. So you can see that this project is intended to be compatible with the SDK for the lower version number.
Workaround:
Method one, because this project is to be compatible with the low version of the SDK generated, it is only necessary to create a new project when the minimum version number is selected as Android4.0.
Method Two, not in the ADT update to the 22.6.x version number appears after the code, 22.3.x before the version number will not have, good then discard the new version number. Change back to the old version number 22.3.x. can be downloaded to in my network disk.
Of course, the problem will not be so easy to end, next again.
References:
Http://blog.sina.com.cn/s/blog_9653ee0f0101jeaf.html
"Side do project side learn Android" small White will encounter problems--appcompat_v7 problems