Could not launch emulator in Android Studio

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

export ANDROID_SDK=$ANDROID_HOME/lib

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

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

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

before

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

Like:enter image description here


I try with this code in .bashrc now it's working:

export ANDROID_HOME=/home/AccountName/Android/Sdk

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

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.