This is the error I get:
Error:Gradle version 2.10 is required. Current version is 2.8. If using the gradle wrapper, try editing the distributionUrl in /Users/alinrosu/Workspace/passenger-android/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip
I use this inside my buildscript:
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha5'
}
This is my gradle-wrapper.properties file:
#Tue Jan 05 13:28:23 CET 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
As you can see. I use gradle version 2.10. Do I need to refresh the cache somehow? I Tried clean, rebuild, but nothing works
Android Studio will download gradle to sub dir named by a hash. To download manually, need to download to the exact sub dir named by the hash.
Android Studio uses Gradle, an advanced build toolkit, to automate and manage the build process, while allowing you to define flexible custom build configurations. Each build configuration can define its own set of code and resources, while reusing the parts common to all versions of your app.
You need set Use default gradle wrapper in
Settings > Builds,Execution,Deployment > Build Tools > Gradle >Project-level settings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With