# Ionic failed to build with

**URL:** <https://forum.ionicframework.com/t/ionic-failed-to-build-with/133498>\
**Category:** ionic-v3\
**Created:** [June 25, 2018, 1:58am UTC](https://forum.ionicframework.com/t/ionic-failed-to-build-with/133498 "2018-06-25T01:58:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amad4biz](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@amad4biz](https://forum.ionicframework.com/u/amad4biz)\
**Post date:** [June 25, 2018, 1:58am UTC](https://forum.ionicframework.com/t/ionic-failed-to-build-with/133498/1 "2018-06-25T01:58:40Z")

</div>

I am trying to build my app for prod running this command but it keeps failing  
ionic cordova build android --prod --release, however if i run the build with the flag --prod, it build successfully. any help will be much appreciated.

below is my environment,

@ionic/cli-utils : 1.19.2  
ionic (Ionic CLI) : 3.20.0

global packages:

```
cordova (Cordova CLI) : 8.0.0

```

local packages:

```
@ionic/app-scripts : 3.1.9
Cordova Platforms : android 7.0.0
Ionic Framework : ionic-angular 3.9.2

```

System:

```
Node : v8.9.4
npm : 4.2.0
OS : Windows 10

```

Environment Variables:

```
ANDROID_HOME : not set

```

Misc:

```
backend : pro
```

---

<div class="post-metadata">

**Author:** ![abhayjani](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/abhayjani/32/121906_2.png) [@abhayjani](https://forum.ionicframework.com/u/abhayjani)\
**Post date:** [June 25, 2018, 6:50am UTC](https://forum.ionicframework.com/t/ionic-failed-to-build-with/133498/2 "2018-06-25T06:50:45Z")

</div>

can you share error log?

---

<div class="post-metadata">

**Author:** ![amad4biz](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@amad4biz](https://forum.ionicframework.com/u/amad4biz)\
**Post date:** [June 25, 2018, 1:14pm UTC](https://forum.ionicframework.com/t/ionic-failed-to-build-with/133498/3 "2018-06-25T13:14:22Z")

</div>

Hi Abhayjani, i will share it when i get home. thank you for responding

---

<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:31pm UTC](https://forum.ionicframework.com/t/ionic-failed-to-build-with/133498/4 "2021-07-19T21:31:43Z")

</div>

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


