Search This Blog

Monday, 4 April 2016

How to Install Android Studio in Mac System?

   

  1. Check Java is installed in your system or not by using a terminal as below.
  2. Open a terminal and use below command
    • java -version 
  3. If it'snot installed then need to install Java JDK from below link:-
  4.  Install JDK by accepting terms and click on next>> Next and Next.
  5. Now need to set up the JAVA_HOME in the environment variable.
  6. Need to follow the below steps:- 
    • Check the JAVA_HOME is set up or not by using below command in terminal
      • echo $JAVA_HOME (If it doesn't give the output then it's not set)
    • If it's not installed then go to your home directory by using below command in terminal
      • cd ~/
    • Now you need to check, in hidden files, you are having a .bash_profile or not for checking this use below command
      • ls -al (It will list all the files including hidden one too)
    • If .bash_profile is not there then we need to create a file by using below command in terminal
      • touch .bash_profile (It will create a file)
      • now again use a command 'ls -al' in the terminal and you will find the '.bash_profile'
    • Now you need to open the .bash_profile in the editor and need to follow below command in terminal 
      • open -e .bash_profile (It will open a file in the editor)
    • Now need to set up the JAVA_HOME in the editor of .bash_profile by below 
      • export JAVA_HOME=$(/usr/libexec/java_home) and save.
    • Now to check either it's set or not quit your terminal and again type the command in new terminal as same as before 'echo $JAVA_HOME' (It will show the location of JAVA_HOME)
  7.  Now need to install Android studio and for the same need to download it from below link
  8. Install it and drag and drop in the Application folder and open Android studio by double click.
  9. If you are upgrading then select 1st Option "Custom Location ...' else for very 1st-time select 'Do not import settings'
  10. Just do Next>>Custom (Option select)>>Next>>Select UI Theme>>Next>> Select the component you want to install (select all option) and Next>>Give memory as recommended>>Next>>Next>>Finish.
  11. Open your Application now or create a new one and follow the steps by providing the project name and next and select as per as you need and GO ON.

Happy Coding

No comments:

Post a Comment