Ionic-cli: Unable to Build ionic project- BUILD FAILED

Created on 22 Nov 2016  路  2Comments  路  Source: ionic-team/ionic-cli

_From @noumanrasheed on November 22, 2016 12:35_

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request

Current behavior:

:processReleaseResources FAILED

BUILD FAILED
Total time: 1 mins 1.842 secs
Error: /Users/*/myapp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':processReleaseResources'.

    com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/*/Library/Android/sdk/build-tools/25.0.0/aapt'' finished with non-zero exit value 1

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

Expected behavior:
BUILD SUCCESSFUL

Steps to reproduce:
cordova build android

_Copied from original issue: driftyco/ionic#9283_

Most helpful comment

guys Issue is resolved. Just delete node_modules folder from www directory and you will get successful build.

All 2 comments

guys Issue is resolved. Just delete node_modules folder from www directory and you will get successful build.

Thanks @noumanrasheed this is works for me!

Was this page helpful?
0 / 5 - 0 ratings