To test Android apps, we need to install Android SDK.
We need to setup some system variables, through editing ~/.bash_profile as following:
export ANDROID_HOME=/Applications/adt-bundle-mac/sdk
PATH=$PATH:$ANDROID_HOME:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
And we also need to add necessary APIs of Android in "Android SDK manager".
We also should add AVDs we want to use.
Make sure that hw.battery=yes
in your AVD’s config.ini