0

I want to create a gradle base android project in JetBrains IntelliJ IDEA 14.0.2 . i have gradle 2.2 in my computer and use it for my java project but when i create a gradle base android project , it start to download gradle 2.1 and when i disconnect internet give me error

Error:Distribution download cancelled. Using distribution from 'https://services.gradle.org/distributions/gradle-2.1-all.zip'.

how can i set my local gradle 2.2 for this project??

sorry for my bad english

Alex Mercer
  • 475
  • 1
  • 5
  • 14

1 Answers1

1

In the file [name of your project]\gradle\wrapper\gradle-wrapper.properties change

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

to

distributionUrl=[the location of your downloaded gradle file]

I hope it works.