I ported an existing AngularJS project to Ionic, but got this build error from “ionic run Android”:
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 ‘/Users/Frank/Library/Android/sdk/build-tools/23.0.2/aapt’’ finished with non-zero exit value 1
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 6.07 secs
ERROR running one or more of the platforms: Error code 1 for command: /Users/Frank/Documents/Code/MyAppClientWeb/MyApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/Frank/Documents/Code/MyAppClientWeb/MyApp/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to run this project
I saw another post on multiple plug-ins depending on the same module, and followed suggestion to add a file named build-extras.grade with this:
Still does’t work.
How to fix this? Any help is appreciated.