2016-01-21 51 views
7

插件太舊,請更新到最新版本,或者設置ANDROID_DAILY_OVERRIDE環境變量「aed79d567e57792ed352e708d2b7ca891ff897c6」 有人可以幫助我嗎?我怎麼能更新這個插件太舊,請更新到最新版本

apply plugin: 'com.android.application' 
android { 
compileSdkVersion 23 
buildToolsVersion '23.0.2' 

defaultConfig { 
    applicationId "xxxxxx.xxxx.xxx" 
    minSdkVersion 16 
    targetSdkVersion 23 
    versionCode 1 
    versionName "1.0" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
}} dependencies { 
compile fileTree(include: ['*.jar'], dir: 'libs') 
testCompile 'junit:junit:4.12' 
compile files('libs/Parse-1.10.2.jar') 
compile 'com.android.support:appcompat-v7:23.1.1' 
compile 'com.android.support:design:23.1.1' 
compile 'com.parse.bolts:bolts-android:1.+' 
compile 'com.android.support:support-v4:23.1.1' 
compile 'com.google.android.gms:play-services:8.1.0'}' 

和我使用的插件'com.android.tools.build:gradle:2.0.0-alpha3'

你有可能是原因的任何想法?

+0

好的。所以*請更新到更新的版本,或將ANDROID_DAILY_OVERRIDE *設置爲它告訴你的值。那些非常明確的指示中有哪部分你不明白?它完全告訴你**要做什麼。 –

+0

@kenwhite我什麼都不懂。我已經糊塗..我有一個依賴{ 類路徑「com.android.tools.build:gradle:2.0.0-alpha3」 } – tin

+0

正如我所說的,該消息告訴您確切** **你需要什麼去做。請升級插件或將環境變量設置爲它爲您提供的值。有人駕駛你的房子來工作你的鍵盤,你還希望我們做什麼? –

回答

9

我也有這種problem.Solved它通過將項目gradle這個文件改變了類路徑從

dependencies { 
     classpath 'com.android.tools.build:gradle:2.0.0-alpha3' 
} 

dependencies { 
     classpath 'com.android.tools.build:gradle:1.5.0' 
} 

1.5.0外觀穩重給我。

+0

我一直在使用gradle 2.0.0-alpha3版本,並將其更改爲1.5.0,正如@Prince所說的那樣。 –

+0

謝謝你的回答有用@JayakrishnanSalim –

+0

@princejayakumar非常感謝。它的工作,,真的很感激 – tin

14

更新您的插件:

classpath 'com.android.tools.build:gradle:2.0.0-alpha6' 

你可能會得到一個錯誤說Gradle Version 2.10 is required

關注this SO answer,它說:

我武功,你需要改變設置>構建,執行,部署> 生成工具>搖籃>搖籃家路徑

,或者您需要設置使用默認gradle這個包裝和編輯 Project\gradle\wrapper\gradle-wrapper.properties文件場 distributionUrl這樣

distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 
+0

@tin如果這個或任何答案已經解決你的問題,請考慮[接受它(http://meta.stackexchange.com/q/5234/179419)由點擊複選標記。這向更廣泛的社區表明,您已經找到了解決方案,併爲答覆者和您自己提供了一些聲譽。沒有義務這樣做。 – Sufian

+0

@Sufian感謝您的編輯。 –

相關問題