简体   繁体   中英

Android studio : gradle project sync failed

im studying android development for a month and in my project the gradle version is

code:

  classpath 'com.android.tools.build:gradle:2.0.0-alpha3'

today when i lunched to android studio i got the error "Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to..."

what should i do? how to update for the latest version gradle?. Thanks for the help!

我认为您已经更新了sdk和工具,因此请尝试新的插件,也许是alpha4至alpha6版本:

classpath 'com.android.tools.build:gradle:2.0.0-alpha5'

I have same problem you can find version of gradle here:

https://bintray.com/android/android-tools/com.android.tools.build.gradle/view

and change the version to

classpath 'com.android.tools.build:gradle:2.0.0'

also you have error importing this version you can change the version of grader home in gradle-wrapper.properties to:

distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip

rebuild project and it should work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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