I've just had a Cordova project land on my lap and i've been tasked with building the apps and getting them on the stores. iOS worked fine but now i've hit a wall with Android.
So, every time i build - by running cordova build android - im getting the following 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 '/Users/sprince/Library/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: 8.432 secs
ERROR building one of the platforms: Error code 1 for command: /Users/sprince/Documents/Projects/ProjName/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/sprince/Documents/Projects/ProjName/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to build this project
Error: Error code 1 for command: /Users/sprince/Documents/Projects/ProjName/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/sprince/Documents/Projects/ProjName/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
I've been googling around and had a good search through Stack and most responses are saying do a clean and rebuild. I've done this a few times now and had no luck, I've checked and i have all the SDKs / tools etc installed.
Any ideas? Any help would be much appreciated!