This applies to both Android Studios and NativeScript.
In Android Studios if you cannot see your device in the dialog when trying to run on physical device:
In Android Studios if you cannot see your device in the dialog when trying to run on physical device:
and in NativeScript after running the below command you get:
tns devices
Connected devices & emulators
Searching for devices...
iTunes is not installed. Install it on your system and run this command again.
Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again.
Try the following:
- Ensure your phone is plugged into the USB
tns devices
Connected devices & emulators
Searching for devices...
iTunes is not installed. Install it on your system and run this command again.
Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again.
Try the following:
- Ensure your phone is plugged into the USB
- Enable devloper mode by going to Settings > About phone and tap Build number seven times.
- Enable USB debugging
- Open up the device manager and if there is an unknown ADB interface then:
- Download the Google USB drivers following the instructions here. The drivers should be located at android sdk\extras\google\usb_driver\
- In the device manager right click on the ADB Interface and choose update driver and choose to manually install it by navigating to sdk\extras\google\usb_driver\
- Pick Android ADB Interface. If everything installs fine your device manager should contain the driver
- Your phone will then ask you to accept the RSA fingerprint from your computer. Click Ok and you should now be able to run your app on your physical device.