Android SDK 5.0 This statement brings the toss-life is the toss!

Source: Internet
Author: User

Android SDK 5.0 brings this toss-life is a toss!

The beautiful Life of the Sun Vulcan (http://blog.csdn.net/opengl_es)

This article follows "Attribution-non-commercial use-consistent" authoring public agreement

Reprint Please keep this sentence: Sun Vulcan's Beautiful Life-this blog focuses on Agile development and mobile and IoT device research: IOS, Android, HTML5, Arduino, Pcduino . otherwise. Articles from this blog refuse to be reproduced or reproduced. Thank you for your cooperation.


1, the first need to understand a problem, Android SDK, including such as the following several major parts:

A, tools

This is the Android tool. Emulator and other tools are here.

B, Platform-tools

This is the platform tool, the famous adb is here

C, Build-tools

This is the build tool, has done the bulk compiles the developer, may have used these packing commands, for example AAPT, DX and so on;

There will be multiple platform-specific build tool version numbers under this folder. are in a folder that represents the version number of the platform. such as 19.1.0:


D, platforms

This is the corresponding platform version number of the API at all levels of the development library, for example, as seen in. Also the folders identified by the platform API version number are organized separately.

From there, you can see that every time a new version of Android is advertised, it will bring Android tools, platform tools, build tools, or all updates, and the platform SDK will announce a new version number.

E, Extras

The Add-ons section, which is more important than the "Support library", ensures that some of the features introduced in the new version number SDK can be executed on devices that do not have an earlier version number with these features


2. Now create a new Android application, assuming that the application is backward-compatible version number, and use some of these low version numbers do not have features, you will be actively creating a similar APPCOMPAT_V7 this project:

Zaten the problem solving process during the process of processing:

1, the actual use, found. Copy the Android-support-v7-appcompat.jar directly into the Libs folder under the project folder you built, and add it to the build path (the jar under the default Libs is actively added to the build path itself. Sometimes there are situations where you do not voluntarily join. It is not clear that the real purpose of this project is to be created by simply manually joining it at this point.

2. In addition, you need to ensure that the version numbers of the support libraries introduced in other project references to the library project are consistent. Inconsistencies are prompted in the console to find support libraries for two different version numbers

3, build tool, Platform SDK need version number corresponding. In addition ADT should also use the corresponding version number. So that they can work very well together. At least for now, 5.0 of support libraries and 4.4.2 project will be found to be unable to find any kind of resource problem

Summary: either upgrade. On all upgrades to the latest version number, or do not upgrade, avoid the cross-use, this intersection is the Google developers have failed to test the place, very easy problem.

Before the upgrade. Back up the original version number first. This is very important, otherwise you want to come back to use, there will be inexplicable problems.


In summary, do not upgrade easily, upgrade be sure to back up the previous version number. Best is all!



Here is a list of the changes and adaptations required for each Zaten. Contains the SDK version number, another introduction to referencing the project library, the build path, the JDK compiler version number, the Fix Android properties, the compatibility of the version number of the support library with the SDK version number, and the SDK between master project and reference project Consistency check confirmation for version number and support library version number.




Might add a plot.










Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

Android SDK 5.0 This statement brings the toss-life is the toss!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.