0

I've started encountering hangs during my nativescript builds for Android. Yesterday, I got hangs after installing both a plugin and a javascript library. Today, I have had ECONNREFUSED errors when pushing the build to a device via USB as well as just hangs where the build just stops. It seems like it is losing the connection to the device or the device is refusing the connection.

I can solve it sometimes by unplugging the device and reconnecting, clearing the platforms folder, or just rebooting my dev box. This is a huge pain. The project is fairly large. Are there size constraints to an app? Does anyone have any suggestions as to why I might be suddenly having these errors?

markelc
  • 354
  • 2
  • 14
  • Are you getting the same issue with Android Emulator ? – Baskar Rao Dec 24 '18 at 18:19
  • I just launched it to the emulator without a problem, but that's not conclusive because the problem is intermittent. I'll work on the emulator for a while and see if the same problems crop up. Thanks for the suggestion. – markelc Dec 24 '18 at 19:21
  • The errors do not appear to be happening with the emulator. I've been banging on it and rebuilding for over an hour without any of the above errors. – markelc Dec 24 '18 at 20:24
  • Since you are not getting issues with emular, it might be because of some antivirus program on your computer, which might be restricting some communication with the device through USB. – Baskar Rao Dec 24 '18 at 20:26
  • I disabled anti-virus and the firewall, and still getting the ECONNREFUSED. But obviously there is something interfering with comms that happened yesterday. I'll see if I can track down any changes when I return. Thanks for your help. – markelc Dec 24 '18 at 20:56
  • Pushing builds to the emulator this morning and encountered "Error is: Sync operation is taking too long" which resulted in stopping webpack. Then the console showed: "System.err: java.io.IOException: Broken pipe". I'm not sure how I can have a broken pipe when this is the only emulator running. – markelc Dec 25 '18 at 13:55
  • May be this can resolve your issue. https://stackoverflow.com/questions/52647358/error-during-sync-broken-pipe-after-update-android-studio-3-2 – Baskar Rao Dec 25 '18 at 15:40
  • Unfortunately, it did not. I did find some version mismatches between nativescript and plugins, and fixed them. But it did not solve the problem. – markelc Dec 26 '18 at 16:30

0 Answers0