以下內容是使用在項目 -Gradle版本2.10是必需的。目前的版本是2.8的錯誤
The android studio version - 2.0 Preview 4.
ANDROID_BUILD_MIN_SDK_VERSION=9
ANDROID_BUILD_TARGET_SDK_VERSION=22
ANDROID_BUILD_TOOLS_VERSION=22.0.1
ANDROID_BUILD_SDK_VERSION=22
classpath 'com.android.tools.build:gradle:2.0.0-alpha9'
按照錯誤,我改變了分配網址
https\://services.gradle.org/distributions/gradle-2.8-all.zip
到
https\://services.gradle.org/distributions/gradle-2.10-all.zip
但仍然收到以下錯誤
Error:(1, 1) A problem occurred evaluating project ':app'. Failed to apply plugin [id 'com.android.application'] Gradle version 2.10 is required. Current version is 2.8. If using the gradle wrapper, try editing the distributionUrl in /Users/manishpathak/Project/live/code/ICCCricketWorldCup2015Schedule/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip
請問這有幫助:http://stackoverflow.com/a/34814536/450534? –