# Ionic build android --prod giving error

**URL:** <https://forum.ionicframework.com/t/ionic-build-android-prod-giving-error/118379>\
**Category:** ionic-v3\
**Created:** [January 16, 2018, 12:13pm UTC](https://forum.ionicframework.com/t/ionic-build-android-prod-giving-error/118379 "2018-01-16T12:13:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![msatrop](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@msatrop](https://forum.ionicframework.com/u/msatrop)\
**Post date:** [January 16, 2018, 12:13pm UTC](https://forum.ionicframework.com/t/ionic-build-android-prod-giving-error/118379/1 "2018-01-16T12:13:28Z")

</div>

Hi,

I am fairly new to Ionic and building an app.  
When I am trying to build the app by using “prod” flag its giving me error.

```auto
 ionic-app-script task: "build"
[20:07:59] Error: Encountered undefined provider! Usually this means you have a circular dependencies (might be caused
            by using 'barrel' index.ts files.
Error: Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files.
    at Error (native)

```

Please help me out !!!

My system information:

ordova CLI: 7.1.0  
Ionic Framework Version: 3.7.1  
Ionic CLI Version: 2.2.2  
Ionic App Lib Version: 2.2.1  
Ionic App Scripts Version: 3.0.0  
ios-deploy version: Not installed  
ios-sim version: Not installed  
OS: Windows 10  
Node Version: v6.11.2  
Xcode version: Not installed

---

<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:54pm UTC](https://forum.ionicframework.com/t/ionic-build-android-prod-giving-error/118379/2 "2021-07-19T21:54:45Z")

</div>

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


