NativeScript: Execution failed for task ':processF0F1F2F3F4F5F6F7DebugResources'
Hi, I got very strange behavior recently. I was able to build and run on different machine. However recently with the same source, one of my machine failed to build with below error. I try to google it for solution but can’t find any. I even delete everything and checkout the source only, then do
> npm install
> tns platform add android
> tns run build
but still no luck. Anyone got this experience before and got solution? In additional, I wonder anyone have quick and detail instruction how to break down the build process or any flag that can turn on in tns to provide more detail. From message, I only know it failed on :processF0F1F2F3F4F5F6F7DebugResources FAILED. But what cause this error?
:preBuild UP-TO-DATE
:preF0F1F2F3F4F5F6F7DebugBuild UP-TO-DATE
:checkF0F1F2F3F4F5F6F7DebugManifest
:preF0F1F2F3F4F5F6F7ReleaseBuild UP-TO-DATE
:prepareComAndroidSupportAnimatedVectorDrawable2340Library
:prepareComAndroidSupportAppcompatV72340Library
:prepareComAndroidSupportDesign2340Library
:prepareComAndroidSupportRecyclerviewV72340Library
:prepareComAndroidSupportSupportV42340Library
:prepareComAndroidSupportSupportVectorDrawable2340Library
:prepareComGoogleAndroidGmsPlayServicesBase940Library
:prepareComGoogleAndroidGmsPlayServicesBasement940Library
:prepareComGoogleAndroidGmsPlayServicesMaps940Library
:prepareComGoogleAndroidGmsPlayServicesTasks940Library
:prepareCommon20162811DevReleaseLibrary
:prepareContactRuntimeUnspecifiedLibrary
:prepareData20162811DevReleaseLibrary
:prepareList20162811DevReleaseLibrary
:preparePrimitives20162811DevReleaseLibrary
:prepareWidgetsReleaseLibrary
:prepareF0F1F2F3F4F5F6F7DebugDependencies
:compileF0F1F2F3F4F5F6F7DebugAidl
:compileF0F1F2F3F4F5F6F7DebugRenderscript
:generateF0F1F2F3F4F5F6F7DebugBuildConfig
:cleanLocalAarFiles
:ensureMetadataOutDir
:collectAllJars
:setProperties
:asbg:generateInterfaceNamesList
:asbg:runAstParser UP-TO-DATE
:asbg:generateBindings UP-TO-DATE
:mergeF0F1F2F3F4F5F6F7DebugShaders
:compileF0F1F2F3F4F5F6F7DebugShaders
:generateF0F1F2F3F4F5F6F7DebugAssets
:mergeF0F1F2F3F4F5F6F7DebugAssets
:generateF0F1F2F3F4F5F6F7DebugResValues UP-TO-DATE
:generateF0F1F2F3F4F5F6F7DebugResources
:mergeF0F1F2F3F4F5F6F7DebugResources
:processF0F1F2F3F4F5F6F7DebugManifest
:processF0F1F2F3F4F5F6F7DebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processF0F1F2F3F4F5F6F7DebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\aapt.exe'' 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
┌──────────────────┬─────────────────┬────────────────┬───────────────┐
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 2.2.1 │ 2.2.1 │ Up to date │
│ tns-core-modules │ 2.2.1 │ 2.2.1 │ Up to date │
│ tns-android │ 2.2.0 │ 2.2.0 │ Up to date │
│ tns-ios │ │ 2.2.1 │ Not installed │
└──────────────────┴─────────────────┴────────────────┴───────────────┘
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (8 by maintainers)
I was having similar build problems with the android platform. After finding this issue and examining my node_modules, I also found that one of my node dependencies had .gz and .tar files in them. I followed the steps provided by @NathanaelA and deleted those files. And I am able to build now.