[英]How update plugins in android studio?
幾乎一周后我運行了我的android項目,我收到了這條消息:
插件太舊,請更新到更新版本,或將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
}
將com.android.tools.build:gradle:2.0.0-alpha1更改為com.android.tools.build:gradle:2.0.0-alpha3這是最新版本。
打開IDE。 打開一個項目。 然后尋找以下內容:
如果您使用的是Windows,請轉到“ Help
- >“ Check for updates
如果您使用的是Mac,則轉到Android Studio
(左上角的Mac符號旁邊) - > Check for updates
或者,當您啟動SDK Manger時,它會自動搜索插件的更新。 導航到SDK工具。
UDPATE(2016年5月)
更新到最新
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
}
您可以在Android Studio的“ 文件”>“項目結構”>“項目”菜單中指定Gradle版本,也可以在gradle / wrapper / gradle-wrapper.properties文件中編輯Gradle分布參考
distributionUrl = https\://services.gradle.org/distributions/gradle-2.10-all.zip
檢查gradle修訂
The Android Gradle Plugin and Gradle Android Gradle Plugin Requires Gradle 1.0.0 - 1.1.3 2.2.1 - 2.3 1.2.0 - 1.3.1 2.2.1 - 2.9 1.5.0 2.2.1+ 2.* 2.10+
改變線
classpath 'com.android.tools.build:gradle:2.0.0-alpha1'
到最新版本
classpath 'com.android.tools.build:gradle:2.0.0-alpha3
(回答時的最新版本)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.