天天看点

Minimum supported Gradle version is 2.14.1. Current version is 2.8.

在编译的时候出现如下错误:

Error:(9, 1) A problem occurred evaluating project ':CameraLibrary'.

> Failed to apply plugin [id 'android-library']

   > Minimum supported Gradle version is 2.14.1. Current version is 2.8. If using the gradle wrapper, try editing the distributionUrl in E:\SVN\AutoTest\gradle\wrapper\gradle-wrapper.properties to gradle-2.14.1-all.zip

解决办法:

按照提示找到你工程的gradle-wrapper.properties文件,将

distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip      
改成      
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip      

继续阅读