I am developing an hybrid mobile app for android and ios with cordova, angularjs and angularmaterial design. I use npm, bower and grund to manage and run build task. I could build ios but not android with error:
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 '/xxx/android-sdk/build-tools/23.0.3/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 mins 0.919 secs
Error: Error code 1 for command: /xxx/platforms/android/gradlew with args: cdvBuildDebug,-b,/xxx/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true.
My environments:
- cordova@6.1.0
- node_modules node packages
- bower_components dependencies with bowers
- angularjs and angular material design
Any help is appreciated.
ps: I run
cordova platform add android
cordova build android
I even tried to remove/add the android but still no luck.
One interesting observe, If I use a blank project then It will be built successfully for both platforms
Thanks