0

I'm coding in Android studio. I cloned a project from gitHub

https://github.com/QuadFlask/colorpicker

but I have this problem,

enter image description here

I don't know how to solve it because I'm new in android studio.

Vivek Mishra
  • 5,669
  • 9
  • 46
  • 84
Ghazal
  • 13
  • 1
  • 1
  • 4

2 Answers2

4

I have come across the same problem,here is how i fix it.Change the item distributionUrl of gradle-wrapper.properties file to your local gradle,detail see the picture below:

enter image description here

ρяσѕρєя K
  • 132,198
  • 53
  • 198
  • 213
shaojun lyu
  • 184
  • 1
  • 6
  • For me Gradle version is correct but still it is giving exact same error message whenever I run gradle refresh. I copied code form Mac Android Studio 2.3.3 to Windows Android Studio 2.3.2 – LoveForDroid Jul 11 '17 at 19:13
0

Using http at the beginning of the distributionUrl resolved it for me:

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

ayvarot
  • 11
  • 1