# Ionic pro package apk error

**URL:** <https://forum.ionicframework.com/t/ionic-pro-package-apk-error/111894>\
**Category:** Appflow\
**Created:** [November 12, 2017, 8:54pm UTC](https://forum.ionicframework.com/t/ionic-pro-package-apk-error/111894 "2017-11-12T20:54:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpisacco](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gpisacco](https://forum.ionicframework.com/u/gpisacco)\
**Post date:** [November 12, 2017, 8:54pm UTC](https://forum.ionicframework.com/t/ionic-pro-package-apk-error/111894/1 "2017-11-12T20:54:11Z")

</div>

\*\*I am trying to do a build on ionic pro \*\*  
**with cordova-android 6.3.0**

**I am having a gradle error which was solved by removing ‘~’ and’ ‘^’**

**Now I am having the error below.**

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.

BUILD FAILED

Total time: 21.621 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

**I also tried using 6.2.3 but it gives me:**

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:processDebugManifest’.

> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31  
> is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).  
> Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 32.608 secs  
Error: /usr/src/app/platforms/android/gradlew: Command failed with exit code 1 Error output:  
Note: Some input files use or override a deprecated API.  
Note: Recompile with -Xlint:deprecation for details.  
Note: Some input files use or override a deprecated API.  
Note: Recompile with -Xlint:deprecation for details.  
/usr/src/app/platforms/android/AndroidManifest.xml:27:9-31 Error:  
Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31  
is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).  
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:processDebugManifest’.

> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31  
> is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).  
> Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

- 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:** ![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, 10:04pm UTC](https://forum.ionicframework.com/t/ionic-pro-package-apk-error/111894/2 "2021-07-19T22:04:01Z")

</div>

Closed on July 19, 2021, 10:04pm UTC


