[英]How update plugins in android studio?
I ran my android project after almost a week and I got this message: 几乎一周后我运行了我的android项目,我收到了这条消息:
Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "a8faa180fc282060c9b8ec88f9bdcc9072121284"
插件太旧,请更新到更新版本,或将ANDROID_DAILY_OVERRIDE环境变量设置为“a8faa180fc282060c9b8ec88f9bdcc9072121284”
How do I update my Plugins? 如何更新我的插件? I am using android Studio 2.0.
我正在使用android Studio 2.0。 Here is my build.gradle project file
这是我的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这是最新版本。
Open your IDE. 打开IDE。 Open a project.
打开一个项目。 Then look for the following:
然后寻找以下内容:
If you are using Windows you go to Help
-> Check for updates
如果您使用的是Windows,请转到“
Help
- >“ Check for updates
If you are using Mac, you go to Android Studio
(next to the Mac symbol, in the top left) -> Check for updates
如果您使用的是Mac,则转到
Android Studio
(左上角的Mac符号旁边) - > Check for updates
Alternatively when you launch your SDK Manger, it automatically searches for updates to your plugins. 或者,当您启动SDK Manger时,它会自动搜索插件的更新。 Navigate to SDK Tools.
导航到SDK工具。
UDPATE (may-2016) UDPATE(2016年5月)
update to lastest 更新到最新
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
}
You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio , or by editing the Gradle distribution reference in the gradle/wrapper/gradle-wrapper.properties file 您可以在Android Studio的“ 文件”>“项目结构”>“项目”菜单中指定Gradle版本,也可以在gradle / wrapper / gradle-wrapper.properties文件中编辑Gradle分布参考
distributionUrl = https\://services.gradle.org/distributions/gradle-2.10-all.zip
check gradle revisions 检查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+
check answer for update gradle 检查更新gradle的答案
Change the line 改变线
classpath 'com.android.tools.build:gradle:2.0.0-alpha1'
to a latest version like 到最新版本
classpath 'com.android.tools.build:gradle:2.0.0-alpha3
(latest version at the moment of answering) classpath 'com.android.tools.build:gradle:2.0.0-alpha3
(回答时的最新版本)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.