cannot make android project with latest gradle version

1103 views android
8

I am using intellij idea 2017.03 and i am using it for android developments. currently when i create project it takes gradle version as 2.2.3. but current version is 4. so i am trying to make my project gradle version to latest one. i tried to update it via build.gradle file. but i didn't works. and i know that new android studio update will fix this. but in there release notes they have mentioned that android studio built on intellij idea 2017.03. so how can i make it works?

answered question

1 Answer

3

This is the line you have, right:

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

Gradle classpath versions are different from the actual Gradle versions for some reason.

Change the version there to 3.1.4, and make sure you have the following line in gradle-wrapper.properties:

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

posted this

Have an answer?

JD

Please login first before posting an answer.