question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build failure for helloworld project on nativescript.org

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Plamen5kovcommented, Jan 6, 2017

@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.

0reactions
siteslavecommented, Jan 3, 2017

I have a same problem:

  • What went wrong: Execution failed for task ‘:prepareComAndroidSupportAnimatedVectorDrawable2340Library’.

Could not expand ZIP ‘C:\Users\sites\AppData\Local\Android\android-sdk\extras\android\m2repository\com\android\support \animated-vector-drawable\23.4.0\animated-vector-drawable-23.4.0.aar’.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build failure for helloworld project on nativescript.org #299
I setup the environment as instructed by the page: http://docs.nativescript.org/setup/ns-cli-setup/ns-setup-os-x.html And then I try to ...
Read more >
Create NativeScript Helloworld project failed - Stack Overflow
Let me answer to this question myself. After struggling for few days I can able to fix this issue by simply re-installing Nativescript....
Read more >
Development Workflow - NativeScript Docs
Runs your project on all connected devices or in native emulators for the selected platform. The command will prepare, build and deploy the...
Read more >
Hello World Application - NativeScript Docs
Create a new Blank Activity project in Android Studio. Add the assets folder within the project (in the Project window right-click App ,...
Read more >
Troubleshooting - NativeScript Docs
Solution: The NativeScript CLI generates platform-specific native projects for your app in the platforms/android and platforms/ios folders.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found