How to Install Android Studio in Mac System?
- Check Java is installed in your system or not by using a terminal as below.
- Open a terminal and use below command
- If it'snot installed then need to install Java JDK from below link:-
- Install JDK by accepting terms and click on next>> Next and Next.
- Now need to set up the JAVA_HOME in the environment variable.
- 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
- 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)
- Now need to install Android studio and for the same need to download it from below link
- Install it and drag and drop in the Application folder and open Android studio by double click.
- If you are upgrading then select 1st Option "Custom Location ...' else for very 1st-time select 'Do not import settings'
- 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.
- 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