我幾乎一個星期後,跑到我的Android項目,我得到這個消息:如何更新android studio中的插件?
插件太舊,請更新到最新版本,或 ANDROID_DAILY_OVERRIDE環境變量設置爲 「a8faa180fc282060c9b8ec88f9bdcc9072121284」
如何更新我的插件?我正在使用android studio 2.0。這裏是我的build.gradle項目文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
他們不是很好的更新自己的網站,但如果你去到源(分銷渠道),你可以看到所有的插件可用版本的和他們發佈時間:https://bintray.com/android/android-tools/com.android.tools.build.gradle/ –
我已經改變了我的構建:gradle 2.0.0-alpha3,但它仍然給予同樣的錯誤。 –
@ user3082254 - 重建項目 –