# Error wirh 'Ionic build android' :packageDebug FAILED

**URL:** <https://forum.ionicframework.com/t/error-wirh-ionic-build-android-packagedebug-failed/81143>\
**Category:** ionic-v3\
**Created:** [February 27, 2017, 1:28pm UTC](https://forum.ionicframework.com/t/error-wirh-ionic-build-android-packagedebug-failed/81143 "2017-02-27T13:28:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohbello](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mohbello](https://forum.ionicframework.com/u/mohbello)\
**Post date:** [February 27, 2017, 1:28pm UTC](https://forum.ionicframework.com/t/error-wirh-ionic-build-android-packagedebug-failed/81143/1 "2017-02-27T13:28:12Z")

</div>

Hello everyone, i am trying to build the android apk file but i am getting this error, can someone helps me solve this? thanks. This is my system informations and the error i am getting.

* * *

* * *

'ordova CLI: 6.5.0

Ionic CLI Version: 2.1.8

Ionic App Lib Version: 2.1.4

ios-deploy version: Not installed

ios-sim version: Not installed

OS: Windows 10

Node Version: v6.10.0

Xcode version: Not installed’

* * *

* * *

'ANDROID\_HOME=C:\Users\Bello\AppData\Local\Android\sdk

JAVA\_HOME=C:\Program Files\java\jdk1.8.0\_65

Subproject Path: CordovaLib

Incremental java compilation is an incubating feature.

:preBuild UP-TO-DATE

:preDebugBuild UP-TO-DATE

:checkDebugManifest

:CordovaLib:preBuild UP-TO-DATE

:CordovaLib:preDebugBuild UP-TO-DATE

:CordovaLib:checkDebugManifest

:CordovaLib:prepareDebugDependencies

:CordovaLib:compileDebugAidl UP-TO-DATE

:CordovaLib:compileDebugNdk UP-TO-DATE

:CordovaLib:compileLint UP-TO-DATE

:CordovaLib:copyDebugLint UP-TO-DATE

:CordovaLib:mergeDebugShaders UP-TO-DATE

:CordovaLib:compileDebugShaders UP-TO-DATE

:CordovaLib:generateDebugAssets UP-TO-DATE

:CordovaLib:mergeDebugAssets UP-TO-DATE

:CordovaLib:mergeDebugProguardFiles UP-TO-DATE

:CordovaLib:packageDebugRenderscript UP-TO-DATE

:CordovaLib:compileDebugRenderscript UP-TO-DATE

:CordovaLib:generateDebugResValues UP-TO-DATE

:CordovaLib:generateDebugResources UP-TO-DATE

:CordovaLib:packageDebugResources UP-TO-DATE

:CordovaLib:processDebugManifest UP-TO-DATE

:CordovaLib:generateDebugBuildConfig UP-TO-DATE

:CordovaLib:processDebugResources UP-TO-DATE

:CordovaLib:generateDebugSources UP-TO-DATE

:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE

:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE

:CordovaLib:processDebugJavaRes UP-TO-DATE

:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE

:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE

:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE

:CordovaLib:transformNative\_libsWithMergeJniLibsForDebug UP-TO-DATE

:CordovaLib:transformNative\_libsWithSyncJniLibsForDebug UP-TO-DATE

:CordovaLib:bundleDebug UP-TO-DATE

:prepareAndroidCordovaLibUnspecifiedDebugLibrary UP-TO-DATE

:prepareDebugDependencies

:compileDebugAidl UP-TO-DATE

:compileDebugRenderscript UP-TO-DATE

:generateDebugBuildConfig UP-TO-DATE

:generateDebugResValues UP-TO-DATE

:generateDebugResources UP-TO-DATE

:mergeDebugResources UP-TO-DATE

:processDebugManifest UP-TO-DATE

:processDebugResources UP-TO-DATE

:generateDebugSources UP-TO-DATE

:incrementalDebugJavaCompilationSafeguard UP-TO-DATE

:compileDebugJavaWithJavac UP-TO-DATE

:compileDebugNdk UP-TO-DATE

:compileDebugSources UP-TO-DATE

:mergeDebugShaders UP-TO-DATE

:compileDebugShaders UP-TO-DATE

:generateDebugAssets UP-TO-DATE

:mergeDebugAssets UP-TO-DATE

:transformClassesWithDexForDebug UP-TO-DATE

:mergeDebugJniLibFolders UP-TO-DATE

:transformNative\_libsWithMergeJniLibsForDebug UP-TO-DATE

:processDebugJavaRes UP-TO-DATE

:transformResourcesWithMergeJavaResForDebug UP-TO-DATE

:validateSigningDebug

:packageDebug FAILED  
indent preformatted text by 4 spaces

BUILD FAILED

Total time: 53 mins 2.261 secs

FAILURE: Build failed with an exception.

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

> value (90887) \> 0x0000ffff

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.  
Error: cmd: Command failed with exit code 1 Error output:  
FAILURE: Build failed with an exception.

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

> value (90887) \> 0x0000ffff

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

---

<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:** [February 28, 2017, 8:31pm UTC](https://forum.ionicframework.com/t/error-wirh-ionic-build-android-packagedebug-failed/81143/2 "2017-02-28T20:31:29Z")

</div>

Did you [quote=“mohbello, post:1, topic:81143”]  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.  
[/quote]  
like the error message said?

---

<div class="post-metadata">

**Author:** ![mohbello](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mohbello](https://forum.ionicframework.com/u/mohbello)\
**Post date:** [March 1, 2017, 12:53am UTC](https://forum.ionicframework.com/t/error-wirh-ionic-build-android-packagedebug-failed/81143/3 "2017-03-01T00:53:11Z")

</div>

Hello, yes i did and i have the same message, no more informations.

---

<div class="post-metadata">

**Author:** ![aabdolla](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@aabdolla](https://forum.ionicframework.com/u/aabdolla)\
**Post date:** [September 23, 2018, 7:24pm UTC](https://forum.ionicframework.com/t/error-wirh-ionic-build-android-packagedebug-failed/81143/4 "2018-09-23T19:24:27Z")

</div>

Did you ever solve this? I am running into the same issue.
