If you upgrade to Android Studio 3.5.3 and macOS Catalina, then you upgrade npm and Cordova too, you can see this error, while you try to run an Android emulator from terminal

Failed to execute shell command "getprop,dev.bootcomplete"" on device: Error: adb: Command failed with exit code 1 Error output:
error: device unauthorized.

Android emulator starts, but I cannot found my app there.

Because of Android Studio 3.5.3 changed a directory structure I add this to the system PATH variable:

PATH=$PATH:~/Library/Android/SDK/platform-tools

Now I can use adb command in terminal anywhere.

I tried all from this https://stackoverflow.com/questions/50935337/failed-to-execute-shell-command-getprop-dev-bootcomplete-on-device-error-for but it didn’t work. I must try run apk from Android Studio (chose apk on disk in Android Studio) and then Android Studio asks for permissions in new macOS.

If you get something like this error log message after run

SDK not found
Failed to find Android target '27'
Install missing platform and fix project

Click on the Install missing platform and fix the project link. Then I finally see my app in Android Emulator! But the error doesn’t disappear 😀

So, I try new setup new emulator, now not Nexus 5 on Android 7, but Pixel 2 on Android 10. Now I get this:

PANIC: Missing emulator engine program for 'x86' CPU.

And I go to sleep! 😀

Update – NEXT DAY

I used Google and find, that error can be from the update – Android Studio modified more own paths. Just for sure I remove Android Studio and install it like new. Then I try rewrite PATH variable with this, where USERNAME is my home directory name:

PATH=/Users/USERNAME/Library/Android/sdk/emulator:/Users/USERNAME/Library/Android/sdk/tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/USERNAME/Library/Android/SDK/platform-tools

Command “cordova run –emulator” ends now with INSTALL SUCCESS, LAUNCH SUCCESS. Hallelujah!

Permanently PATH modification

This is a Mac. Catalina has a new shell ZSH. So, I must edit the variable PATH permanently. It is easy, if you know, how. Run terminal and write:

cd

This command takes you to the home directory.

nano .zshrc

This will open file .zshrc in editor nano. Here I add my PATH content after $PATH variable:

export PATH="/usr/local/sbin:$PATH:/Users/USERNAME/Library/Android/sdk/emulator:/Users/USERNAME/Library/Android/sdk/tools:/Users/USERNAME/Library/Android/SDK/platform-tools"

Press CTRL+O (save) and CTRL+X (exit). Done. Now terminal/SHELL know, where are Android tools for Cordova, even if you restart your machine.