1
I’m having the following error while running "Ionic cordovan run android command"
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 searched in Stackoverflow and nothing, the Android emulator opens, but the app does not run, I’m using Ubuntu 17.04. If anyone can help me I’d appreciate/
But is this driver even necessary to emulate on the desktop? My mobile phone is a Samsung GT-l8262B, the Developer mode is activated (although I have not tried to run it on mobile device). If it is necessary anyway, to emulate where I could find the driver and recognize it? Will I need to connect the phone to the USB? Sorry, I’m a little lost...
– Matheus Ferreira
@Matheusferreira, in the case of the emulator the driver is not necessary, USB driver is only for USB connections, adb should recognize the emulator, which emulator you are using?
– Diego Ribeiro
@Matheusferreira in my tests used Genymotion as emulator, never had problems running the apps;
– Diego Ribeiro
I’m using android studio
– Matheus Ferreira
I finally got it fixed! Just open the emulator before running the command
– Matheus Ferreira
By the way you couldn’t even connect the device right, had to be via emulator, a tip.. it’s always good to run the app on the device before launching or testing before going to the store, don’t just trust the emulator, you may have errors that only happen in tests on real devices! It is worth trying to let your ADB recognizing android phones and tablets, try to see about USB drivers later and do some more tests. I only debug on real devices, in the latter case I use an emulator!
– Diego Ribeiro
In the device I got but was stuck at the beginning of the app, but I think it is because the device is too old, then I will try in others when I can... But my goal was to make it run on the same emulator.
– Matheus Ferreira
I tested it on my girlfriend’s cell phone and it worked... Mine was very old kk I can barely use it from so slow it’s
– Matheus Ferreira
@Matheusferreira then it’s all right, good luck!
– Diego Ribeiro