Androidstudio, Gradle, buildtoolsversion relations

Source: Internet
Author: User

The use of Androidstudio development has been 2 years, each gradle or studio has recommended updates, after the project re-sync will be an error, prompted to update the corresponding other versions, such as Androidstudio, Gradle, Buildtoolsversion version;

First, the concept.

Androidstudio: Google's official Android app development tool based on IntelliJ idea, similar to previous eclipse, but much more powerful than eclipse, recommended to use;

Gradle: It's a tool, and it's also a programming framework. Use this tool to complete the application of the compilation and packaging work;

Version of the Buildtoolsversion:android build tool, which includes the packaging tools AAPT, DX, and so on. The directory for this tool is located at: Your_sdk_path/build-tools/xx. Xx. XX, updated through SDK Manager;
Comilesdkversion: The compiled version is the Android SDK version needed to run our project;

Compilesdkversion and Buildtoolsversion differences

To create a new project, look at the configuration of the Build.gradle file as follows:

Compilesdkversion: is to tell Gradle which SDK version to compile, and runtime requirements of the version number is not related to the use of any newly added API will need to use the corresponding level of the Android SDK.

Buildtoolsversion:android Build tool version, install select version in SDK Manager, buildtoolsversion version requires >=CompileSdkVersion; A later version of Build-tools can build Android programs that are low-build;

Version relationships for Gradle versions and Com.android.tools.build:gradle configurations

Before it would be strange, why an update Gradle plugin version, will be error
For example, the red part of the configuration is the version of the Android Gradle plug-in, Gradle plug-in version number and Gradle version number is corresponding to the newer version of the plugin needs to require newer gradle, so you are prompted to update gradle;

Androidstudio, Gradle, buildtoolsversion relations

Related Article

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.