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