# Ionic Pro: Android Package Build Failed (Debug)

**URL:** <https://forum.ionicframework.com/t/ionic-pro-android-package-build-failed-debug/108773>\
**Category:** Appflow\
**Created:** [October 13, 2017, 3:12pm UTC](https://forum.ionicframework.com/t/ionic-pro-android-package-build-failed-debug/108773 "2017-10-13T15:12:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommiller](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@tommiller](https://forum.ionicframework.com/u/tommiller)\
**Post date:** [October 13, 2017, 3:12pm UTC](https://forum.ionicframework.com/t/ionic-pro-android-package-build-failed-debug/108773/1 "2017-10-13T15:12:13Z")

</div>

I’m trying run a build using Ionic Pro but getting the following error (see below). Could this be an issue with Ionic Pro rather than an issue with my code?

BUILD FAILED

Total time: 51.714 secs  
Error: /usr/src/app/platforms/android/gradlew: Command failed with exit code 1 Error output:  
FAILURE: Build failed with an exception.

- What went wrong:  
A problem occurred configuring root project ‘android’.

> You have not accepted the license agreements of the following SDK components:  
> [Android SDK Platform 26].  
> Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.  
> Alternatively, to learn how to transfer the license agreements from one workstation to another, go to [Exporting licenses - Android Studio Project Site](http://d.android.com/r/studio-ui/export-licenses.html)

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.  
Failed to upload apk to storage please retry your build.  
Running after script…  
$ clean-up  
Cleaning up files…  
Successful clean up  
ERROR: Job failed: exit status 1

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [October 13, 2017, 3:43pm UTC](https://forum.ionicframework.com/t/ionic-pro-android-package-build-failed-debug/108773/2 "2017-10-13T15:43:34Z")

</div>

Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with, sorry. Check these:

- FAQ and common/known issues at [https://ionic.zendesk.com/hc/en-us/sections/115003254647-FAQ-Common-Issues](https://ionic.zendesk.com/hc/en-us/sections/115003254647-FAQ-Common-Issues)
- Common build errors at [https://ionic.zendesk.com/hc/en-us/sections/115003490348-Common-build-errors](https://ionic.zendesk.com/hc/en-us/sections/115003490348-Common-build-errors)
- Official documentation at [https://ionicframework.com/docs/pro/](https://ionicframework.com/docs/pro/)

You can - and should - contact support at [http://ionicframework.com/support#support](http://ionicframework.com/support#support)

---

<div class="post-metadata">

**Author:** ![tommiller](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@tommiller](https://forum.ionicframework.com/u/tommiller)\
**Post date:** [October 13, 2017, 8:11pm UTC](https://forum.ionicframework.com/t/ionic-pro-android-package-build-failed-debug/108773/3 "2017-10-13T20:11:17Z")

</div>

Thanks very much for your quick response. It does appear this is a common build error as mentioned in your link

Common build errors at [https://ionic.zendesk.com/hc/en-us/sections/115003490348-Common-build-errors2](https://ionic.zendesk.com/hc/en-us/sections/115003490348-Common-build-errors2)

Excellent!
