Could not launch emulator in Android Studio

The first error's reason is below:

There are two emulators: one in $SDK/tools, another one in $SDK/emulator.
The one in $SDK/tools cannot start.

Please place $SDK/emulator before $SDK/tools in your $PATH variable, it should fix the problem.

I'm using Android Studio 2.3: edit file : .profile

export ANDROID_HOME=${HOME}/Library/Android/sdk

export PATH=${PATH}:${ANDROID_HOME}/emulator


export PATH=${PATH}:${ANDROID_HOME}/tools

Like:enter image description here

Not sure if this will help for you but I was seeing this error trying to run emulator in the console. I changes the ANDROID_SDK to point to the bin folder in my .bash_profile and that corrected the issue

export ANDROID_HOME=~/Library/Android/sdk