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