简体   繁体   English

更新后Android Studio Gradle构建错误

[英]Android Studio Gradle Build Error after Update

I just upgraded to the new Android Studio 2.0. 我刚刚升级到新的Android Studio 2.0。 When I started up the IDE, it prompted me to update gradle. 当我启动IDE时,它提示我更新gradle。 I clicked yes. 我单击是。 Now everytime I run my project, I get this build message 现在,每次我运行项目时,都会收到此生成消息

/Users/Package/app/build.gradle
Error:Gradle version 2.10 is required. Current version is 2.2.1. If
using the gradle wrapper, try editing the distributionUrl in /Users/
gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip

How can I keep the updated version of gradle, so that I don't have to down-grade every time that I want to run the app. 我如何保留gradle的更新版本,以便不必每次运行应用程序时都降级。

您应该在gradle/wrapper/gradle-wrapper.properties更改gradle网址

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM