如何更新android studio中的插件?

Muz*_*ain 9 plugins dependencies android android-studio android-gradle-plugin

几乎一周后我运行了我的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
}
Run Code Online (Sandbox Code Playgroud)

小智 5

将com.android.tools.build:gradle:2.0.0-alpha1更改为com.android.tools.build:gradle:2.0.0-alpha3这是最新版本.


Tej*_*jjD 5

打开你的 IDE。打开一个项目。然后查找以下内容:

如果您使用的是 Windows,请转到Help->Check for updates

如果您使用的是 Mac,请转到Android Studio(Mac 符号旁边,左上角)->Check for updates

或者,当您启动 SDK Manger 时,它会自动搜索插件的更新。导航至 SDK 工具。