Nativescript-cli: Flag when Android devices are out of storage

Created on 16 Jun 2016  Â·  2Comments  Â·  Source: NativeScript/nativescript-cli

This was originally reported in https://github.com/NativeScript/sample-Groceries/issues/97.

If you try to deploy to an Android device with insufficient storage, we show the “Successfully deployed on device with identifier 'LGXXXXX'” confirmation message, when the app hasn’t actually deployed.

If you turn on trace logs during the build you’ll see the error below, but that’s hidden by default so users as left confused as to why their app doesn’t show up.

Result when throw error is false:
{ stdout: '\tpkg: /data/local/tmp/groceries-debug.apk\r\nFailure [INSTALL_FAILED_INSUFFI
CIENT_STORAGE]\r\n',
  stderr: '1482 KB/s (22105844 bytes in 14.565s)\n',
  exitCode: 0 }
Successfully deployed on device with identifier 'LGXXXXX'.
bug android

All 2 comments

Hey @tjvantoll ,
This is already addressed and should be working fine in the next official release - the error is detected and shown to the user. I'll mark it as bug and set it to Ready for Test, so it will be included in the release notes.

I can confirm it works in {N} CLI master

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Anilinfo2015 picture Anilinfo2015  Â·  3Comments

kefahB picture kefahB  Â·  3Comments

charsleysa picture charsleysa  Â·  3Comments

leevigraham picture leevigraham  Â·  3Comments

PeterStaev picture PeterStaev  Â·  3Comments