These steps are for Mac machine.
Installing Android Studio
Verify like this : $JAVA_HOME/bin/java -version
For Mac, download android-studio(which is a dmg file supported for mac)
open the dmg file and drag dmg into applications. it will show Android-Studio in “Finder” or "Launchpad"
open android studio, click next, select default sdk path click on next..
it would ask for proxy give the proxy details(if you are behind a proxy)
http, host='<proxy url>' port=<port> --proxy=http "platforms;android-25”
enable https also
Click next.. Downloading of the components will start.
It will take lot of time even after connecting to lan.
once the android studio opens, go to SDK manager and in Platform, select version from 7,6,5(all) and update. in SDK tools we need emulator. download these packages.
(Not Required) Setting path for Android home
Android studio automatically sets Android_Home to : /Users/sriramkukkadapu/Library/Android/sdk
if it is not set you can run: export ANDROID_HOME=$HOME/Library/Android/sdk
Installation is done. Now we need to create a AVD(Android Virtual Device or Emulator)
AVD Manager (Or) Emulator
First set these env variables. In Terminal
Go to Android Studio-> AVD Manager -> create virtual device.
Click Next(device selection)
In the System image. install all the android version images(click download link in each of them and download the packages)
Install 8,7 versions
Once the device is ready,
we need to install the apk file of the application which you want to run in Emulator
In the mac terminal go to the path where .apk file is present and run this command.
adb install <testapp.apk>
This command will install the application in the emulator(which is currently running).