0

I'm currently learning Ionic and I am facing an issue when I try to build my project on an android platform.

When I run ionic build android I get the following error :

ionic build android error

I tried to add a gradle.properties file with proxy configuration but that didn't solve my problem.

Removing and recreating the Android platform didn't resolve the problem either.

How can I resolve this problem?

Rob Kielty
  • 7,958
  • 8
  • 39
  • 51

1 Answers1

0

seems it is similar to this problem on ionic framework forum,

So it is recommended to changed in the platforms\android\cordova\lib\builders\GradleBuilder.js file the distributionUrl like the following: var distributionUrl = 'https://services.gradle.org/distributions/gradle-2.14.1-all.zip'; (which was before) var distributionUrl = 'http\://services.gradle.org/distributions/gradle-2.14.1-all.zip';

removing one '\' and changing from http to https solved the problem for me and it starts with donwloading

Korbin
  • 578
  • 5
  • 18
  • Thanks for your answer ! Tried this, and now I get this error : http://imgur.com/a/BWNfp – Florentin Blanc Apr 03 '17 at 09:00
  • how about this solution on stack, how you tried it? http://stackoverflow.com/questions/29874564/ionic-build-android-error-when-download-gradle – Korbin Apr 03 '17 at 09:11