Error on ionic build for Android


#1

Suddenly ionic build android started to fail. The output:


:generateDebugResources UP-TO-DATE
:mergeDebugResources
:processDebugManifest
:processDebugResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugResources’.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/home/cbenseler/Android/Sdk/build-tools/23.0.2/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.

BUILD FAILED

Total time: 1.996 secs
Error: Error code 1 for command: /home/cbenseler/dev/apps/expresso-app-front/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/cbenseler/dev/apps/expresso-app-front/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

I tried to remove the platform, add it again. Remove node_modules and add them again. The problem persists.
If I create a new project and move the content from my app/ directory there, update the package.json and update the dependencies via npm, the build works.

Anyone knows what could be happen or how to debug this in a better way to know which is the real problem?