ionic cordova run android Error

1

I have the following error when executing the command "ionic cordovan run android"

  

Error: Failed to execute shell command "getprop, dev.bootcomplete" "on device:
  Error: adb: Command failed with exit code 1
  Error output: error: device unauthorized. This adb server's $ ADB_VENDOR_KEYS is not set Try 'adb kill-server' if that seems wrong. Otherwise check for a confirmation dialog on your device.

The environment variables are already defined, grandle installed and etc ... I have no idea what is happening, I already looked in StackOverflow and nothing, the Android emulator opens, however the app does not run, I am using Ubuntu 17.04 . If someone can help me I thank the /

    
asked by anonymous 07.07.2017 / 15:13

1 answer

0

You can try using: adb start-server and then adb devices (to list the devices)

If you do not see any device you need to check your adb and also the drives of the device you are connecting to USB

If the list appeared without any device, probably your pc / mac did not recognize the driver for the device, .. try to install the correct driver for the device, before ensuring that the developer mode of the device is enabled, General Settings / Developer Options / USB Debugging (enable this option), if after that your adb still does not recognize, you need to find an ideal driver for your pc to recognize the device, usually google-driver-usb coming in Android SDK already recognizes most .. but there are some devices that are not recognized

For example the LG-K10 (I had to install the direct driver from LG's website)

Download USB Drivers - Google

    
07.07.2017 / 15:25