Encountering a build failure with NativeScript 2.0 (using NativeScript-Angular) when gulp related dependencies are added to the 'devDependencies' section and running [tns build android]. The error occurs at 'processF0DebugResources' and has been persistent since version 1.7.1. I was hopeful that the issue would be resolved in version 2.0, but it seems like the devDependencies are being built as well.
Attempting gradlew -debug
did not show any errors, and no .apk file is generated when this particular error arises.
The specific exception received:
:processF0DebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':processF0DebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ' command 'C:\Android\android-sdk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1
This is my package.json configuration:
"dependencies": {
"tns-core-modules": "2.0.0",
"nativescript-angular": "0.0.46",
"angular2": "2.0.0-beta.16",
"nativescript-intl": "0.0.2",
"parse5": "1.4.2",
"punycode": "1.3.2",
"querystring": "0.2.0",
"url": "0.10.3",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"zone.js": "0.6.12",
"es6-shim": "0.35.0"
},
"devDependencies": {
"babel-traverse": "6.8.0",
"babel-types": "6.8.1",
"babylon": "6.8.0",
"filewalker": "0.1.2",
"gulp": "3.9.1",
"gulp-connect": "^4.0.0",
"gulp-typescript": "^2.13.0",
"gulp-watch": "^4.3.5",
"lazy": "1.0.11",
"nativescript-dev-typescript": "^0.3.1",
"run-sequence": "^1.1.5",
"typescript": "^1.8.10"
}