FIX: Android Emulator Won't Open: Cordova Android 6.2.1, Android SDK 26+

For anyone running cordova-android 6.2.1, you will find that ionic emulate android may fail with Error: android: Command failed with exit code 2.

This is apparently due to the fact that Android SDK 26+ has deprecated the android command. More info and a workaround over at

Took me a good hour to get through this, so hope this helps!

1 Like