I just updated my Android Studio to 3.0 canary 1. Now I am working on my existing project on Android Studio 3.0 canary 1. By default gradle:3.0.0-alpha1 is
I resolved the issue by changinf distributionUrl in the following code in gradle-wrapper.properties file
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
This happened when trying to build debug apk.
SOLUTION: Update Gradle version to 3.5
Navigate to File -> Project Structure -> Project -> Gradle Version = 3.5
This works for Android Studio 3.0
Only Change the gradle URL to
"distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip"
as follow image :
put this code in gradle-wrapper.properties file and it will work with you
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
I've just had the same issue. Fixed it by changing Gradle distributionUrl in "gradle-wrapper.properties".
Here is what I have configured:
#Wed Mar 22 16:13:58 BRT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
for more details
Offical video to help migaration https://www.youtube.com/watch?v=oBsbI8ICYKg
see also comment below from @TmTron
We have two way to deal with it.
You can update your gradle's version from the early one to 3.5 version product;
Or,you can figure your gradle wrapper to 4.1 version.
All of the ways are both useful.