在編譯的時候出現如下錯誤:
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