You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I have checked all similar issues like #976, #3679, and #3832, but none of the advice provided there works for me.
Tell us about the problem
Whenever I try to USB debug my project on my OnePlus 6, it only compiles and opens the app once. Afterwards, the command line process stops with the following error:
Unable to apply changes on device: 16089e09. Error is: Devices.NotFoundDeviceByIndexErrorMessage 16088 tns.
With --log trace, I get the following output right above the error:
Couldn't attach debugger with modified options. { Error: Cannot read property 'kill' of null
at DevicesService.<anonymous> (C:\Users\Wouter\AppData\Roaming\npm\node_modules\nativescript\lib\common\mobile\mobile-core\devices-service.js:330:38)
at Generator.throw (<anonymous>)
at rejected (C:\Users\Wouter\AppData\Roaming\npm\node_modules\nativescript\lib\common\mobile\mobile-core\devices-service.js:11:65)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
allErrors:
[ { TypeError: Cannot read property 'kill' of null
at LogcatHelper.stop (C:\Users\Wouter\AppData\Roaming\npm\node_modules\nativescript\lib\common\mobile\android\logcat-helper.js:75:73)
at AndroidApplicationManager.stopApplication (C:\Users\Wouter\AppData\Roaming\npm\node_modules\nativescript\lib\common\mobile\android\android-application-manager.js:106:28)
at AndroidDebugService.<anonymous> (C:\Users\Wouter\AppData\Roaming\npm\node_modules\nativescript\lib\services\android-debug-service.js:153:50)
at Generator.next (<anonymous>)
at C:\Users\Wouter\AppData\Roaming\npm\node_modules\nativescript\lib\services\android-debug-service.js:7:71
at new Promise (<anonymous>)
at __awaiter (C:\Users\Wouter\AppData\Roaming\npm\node_modules\nativescript\lib\services\android-debug-service.js:3:12)
at AndroidDebugService.debugStartCore (C:\Users\Wouter\AppData\Roaming\npm\node_modules\nativescript\lib\services\android-debug-service.js:152:16)
at AndroidDebugService.<anonymous> (C:\Users\Wouter\AppData\Roaming\npm\node_modules\nativescript\lib\services\android-debug-service.js:131:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\Wouter\AppData\Roaming\npm\node_modules\nativescript\lib\services\android-debug-service.js:4:58)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7) deviceIdentifier: '16089e09' } ] }
I've tried downgrading my CLI, and Android runtimes to one or two minor releases earlier, but got the same issue. Note that this issue doesn't occur with an emulator.
Which platform(s) does your issue occur on?
Android
Please provide the following version numbers that your issue occurs with:
Hey @WouterFlorijn ,
Thanks for reporting this issue. It is related to your device identifier, which is treated as number by NativeScript CLI which causes the issue.
Can you try opening <cli installation dir>/lib/common/mobile/mobile-core/devices-service.js and replace all occurrences of helpers.isNumber with _.isNumber, similar as I've done here. Does this resolve the issue on your side?
EDIT: It seems using lodash's _.isNumber breaks other functionality in CLI, so I had to apply some other changes in the helpers.isNumber method, you can check them here.
Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?
Yes, I have checked all similar issues like #976, #3679, and #3832, but none of the advice provided there works for me.
Tell us about the problem
Whenever I try to USB debug my project on my OnePlus 6, it only compiles and opens the app once. Afterwards, the command line process stops with the following error:
With
--log trace
, I get the following output right above the error:I've tried downgrading my CLI, and Android runtimes to one or two minor releases earlier, but got the same issue. Note that this issue doesn't occur with an emulator.
Which platform(s) does your issue occur on?
Android
Please provide the following version numbers that your issue occurs with:
next
branch of the vue-cli-templatePlease tell us how to recreate the issue in as much detail as possible.
Create a new project using
Run using
The text was updated successfully, but these errors were encountered: