Gradle keep asking for update and demotion?

I keep getting “Gradle Sync Error”, so I checked version 1.8. updated to 1.10, then he said that I need 1.9, so I lowered the rating to 1.9, said I need 1.8, when I go down to 1.8, he says I need 1.9.

15:28:09 Failed to refresh Gradle project 'Calendar' You are using Gradle version 1.8, which is not supported. Please use version 1.9. Please point to a supported Gradle version in the project Gradle settings or in the project Gradle wrapper (if applicable.) Fix Gradle wrapper and re-import project Gradle settings 15:28:26 Failed to refresh Gradle project 'Calendar' You are using Gradle version 1.10, which is not supported. Please use version 1.9. Please point to a supported Gradle version in the project Gradle settings or in the project Gradle wrapper (if applicable.) Fix Gradle wrapper and re-import project Gradle settings 15:28:39 Failed to refresh Gradle project 'Calendar' Gradle version 1.8 is required. Current version is 1.9. If using the gradle wrapper, try editing the distributionUrl in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Android Studio\gradle\wrapper\gradle-wrapper.properties to gradle-1.8-all.zip. Please fix the project Gradle settings. 
+8
android-studio gradle
source share
1 answer

Gradle 1.10 is not yet supported in AS, the Android Tools development team is working on this and will probably be available in a future version.

Now make sure all your build.gradle files in the project using gradle 1.9 as a dependency

  buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.7.+' } } 

Update:

Gradle 1.10 is now supported in Android studio after the release of 0.4.3, so in the future you can start using the 1.10 plugin with 0.8.+ In your classpath like this

 classpath 'com.android.tools.build:gradle:0.8.+' 
+10
source share

All Articles