# Ionic cordova build failed with errors

**URL:** <https://forum.ionicframework.com/t/ionic-cordova-build-failed-with-errors/139124>\
**Category:** ionic-v1\
**Created:** [August 21, 2018, 8:32am UTC](https://forum.ionicframework.com/t/ionic-cordova-build-failed-with-errors/139124 "2018-08-21T08:32:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keanallen](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@keanallen](https://forum.ionicframework.com/u/keanallen)\
**Post date:** [August 21, 2018, 8:32am UTC](https://forum.ionicframework.com/t/ionic-cordova-build-failed-with-errors/139124/1 "2018-08-21T08:32:40Z")

</div>

I am having issues building and running ionic app. When I try to `ionic cordova build android` the error wll show:  
 ![ll](https://global.discourse-cdn.com/ionicframework/original/3X/6/1/61ef7be74c111e470de261c4e428bc827b3d12b7.png)

In my GraddleBuilder.js:

```auto
 var distributionUrl = process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] || 'https\\://services.gradle.org/distributions/gradle-4.1-all.zip';

```

In my graddle-wrapper.properties:

```auto
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=../gradle-3.3-all.zip

```

Everytime I change my `graddle-wrapper.properties` to `../gradlle-4.1-all.zip` it will change back to `../gradlle-3.3-all.zip` after executing build or run command. Please help.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:22pm UTC](https://forum.ionicframework.com/t/ionic-cordova-build-failed-with-errors/139124/2 "2021-07-19T21:22:55Z")

</div>

Closed on July 19, 2021, 9:22pm UTC


