Android Development Gradle itself will be easily confused with something

Source: Internet
Author: User

Using IntelliJ idea to develop Android, about Gradle and Android Gradle plugin easy to confuse places, make the following record:

A. build.gradle file has two places, one is the whole project, one is in the app module, this good understanding, is the global settings and local settings of the relationship

Two. In the Build.gradle file in the project, there is a sentence

Classpath ' com.android.tools.build:gradle:2.1.3 ' this
The version number of this 2.1.3 is the version number of Android Gradle plugin. This version number is associated with two places, one is the version number of the Gradle, and the other is the version number of build Tools version.

This address contains instructions, as follows:

    

According to this correspondence, go to set the version of Gradle and build Tools versions.

Gradle version I was using offline mode


The build Tools version versions are

setting, which is roughly the case.

Android Development Gradle itself will be easily confused with something

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.