Basic knowledge
Correspondence between gradle version and plugin version in Android studio
Recently opened android studio, the page prompts that the gradle version has been upgraded again, so I clicked the update habitually. As a result, the console reported an error during the packaging process, and the error is as follows:
Error: (16, 0) Minimum supported Gradle version is 4.4 Current version is 2.3.1
Check the project and find that the gradle version directory has been changed to 4.4,
Check the information online and found that you need to modify the version number of the corresponding gradle plugin in the build.gradle file in the project root directory.
dependencies {classpath'com.android.tools.build: gradle: 2.3.1 '// NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files}
After modifying the original gradle plugin version number to 3.1.0, and then clicking the sync button, the project can be packaged normally.
To this end, specifically summarize the correspondence between the gradle version and the corresponding plug-in version. The following is the official correspondence between android
This is Androi This is the detailed description of the official Android development address
https://developer.android.google.cn/studio/releases/gradle-plugin#updating-plugin
0 people like this
Android Tools
Author: Black Wolf _ Payne
Link: https://www.jianshu.com/p/6af934b325b2
Source: Jianshu
Copyright belongs to the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.