Build failure for helloworld project on nativescript.org
See original GitHub issueI setup the environment as instructed by the page: http://docs.nativescript.org/angular/start/ns-setup-win And then I try to build the hello world project on nativescript.org: http://docs.nativescript.org/angular/tutorial/ng-chapter-1. But I was given the error below:
:preBuild UP-TO-DATE :preF0DebugBuild UP-TO-DATE :checkF0DebugManifest :preF0ReleaseBuild UP-TO-DATE :prepareComAndroidSupportAnimatedVectorDrawable2340Library FAILED FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:prepareComAndroidSupportAnimatedVectorDrawable2340Library’.
Could not expand ZIP ‘E:\Android\sdk\extras\android\m2repository\com\android\support\animated-vector-drawable\23.4.0\animated-vector-drawable-23.4.0.aar’.
The output of $tns build android --log trace is Total time: 11.236 secs Error: Command F:\project\test\sample-Groceries\platforms\android\gradlew.bat failed with exit code 1 at FiberFuture.Future.wait (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:535:15) at C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\lib\common\errors.js:123:33 at Function.settle (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:249:26) at FiberFuture.Future.wait (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:534:10) at C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\lib\common\services\commands-service.js:84:106 at Function.settle (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:249:26) at FiberFuture.Future.wait (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:534:10) at C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\lib\common\yok.js:208:124 at Function.settle (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:249:26) at FiberFuture.Future.wait (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:534:10) at C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\l`ib\common\services\commands-service.js:51:55 at Function.settle (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:249:26) at FiberFuture.Future.wait (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:534:10) at C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\lib\common\errors.js:123:33 at Function.settle (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:249:26) at FiberFuture.Future.wait (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:534:10) - - - - - at ChildProcess.<anonymous> (C:\Users\hedgehog\AppData\Roaming\npm\node_modules\nativescript\lib\common\child-process.js:91:38) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:827:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
My machine (x64) has 4.00 GB of RAM and 3.86 GB is usable Node 4.4.5 Java 1.8.0_91
Any ideas? Thank you so much! I’ve been stuck for a week.
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (6 by maintainers)
@siteslave, @sancteor you can look at this issue. I can’t reproduce the problem, but it seems it might be related with the path length or the permissions you have on the machine.
I have a same problem: