android-studio Getting started with android-studio Installation or Setup


Example

Windows

  1. Verify that you have the correct JDK. You can check it by opening command prompt (press windows key and write cmd). In the command prompt type javac -version, this will show the current version of JDK installed on your matching or an error* if Java is missing. If the JDK is not available or the version is lower than 1.8, download the Java SE Development Kit 8.

  2. Download the latest Android Studio.

  3. Launch the downloaded .exe file.

  4. Follow the wizard to install Android Studio

  5. After installation completes, open Android Studio from the shortcut that has been made on Desktop during the installation process.

  6. When you open Android Studio for first time, it may ask you to copy your previous settings, but as it is your first time you can simply choose not to copy anything.

  7. Then Android Studio ask to download the required API's to develop Android apps. Download those, after downloading the IDE will open and you will be able to write your first app.

Mac

  1. Verify that you have the correct JDK. You can check it by opening terminal (press command + space and write terminal). In the command line type javac -version, this will show the current version of JDK installed on your matching or an error* if Java is missing. If the JDK is not available or the version is lower than 1.8, download the Java SE Development Kit 8. **

  2. Download the latest Android Studio.

  3. Launch the downloaded .dmg file.

  4. Drag and drop Android Studio into the Applications folder, then launch Android Studio.

  5. Open Android Studio.

  6. When you open Android Studio for first time, it may ask you to copy your previous settings, but as it is your first time you can simply choose not to copy anything.

  7. Then Android Studio ask to download the required API's to develop Android apps. Download those, after downloading the IDE will open and you will be able to write your first app.

Linux

  1. Verify that you have the correct JDK. You can check it by opening terminal (press command + space and write terminal). In the command line type javac -version, this will show the current version of JDK installed on your matching or an error* if Java is missing. If the JDK is not available or the version is lower than 1.8, download the Java SE Development Kit 8. **

  2. Download the latest Android Studio.

  3. Unzip/extract Android Studio in a specific folder.

  4. Open terminal and go the path where you have extracted the Android Studio. (Then, use cd command to go inside the Android Studio folder.) After going in we need to go inside bin folder so again,use command cd bin and enter.

  5. Now we need to change the mod of our required file i.e studio.sh to do so enter command sudo chmod 777 -R studio.sh , press enter and write your password(if any) and enter. (Also you can see the list of files present inside bin by command ls.).

  6. After changing mod we just have to run the .studio.sh file to do so enter command ./studio.sh

  7. When you run above command Android Studio launch for first time, it may ask you to copy your previous settings, but as it is your first time you can simply choose not to copy anything.

  8. Then Android Studio ask to download the required API's to develop Android apps. Download those, after downloading the IDE will open and you will be able to write your first app.

You may encounter "unable to run mksdcard SDK tool" when you are installing android studio in 64 bit ubuntu os because studio requires some 32 binaries. To overcome this error finish and close Android Studio & go to terminal and run sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6. Once installation is completed for these binaries again go back to step 6 and resume installation process.

Notes

  • If you have already installed JDK and still getting then make sure you have set JAVA_HOME in your System Variables. You can check this answer on how to setup one.

  • There are, however, known stability issues in Android Studio on Mac when using JDK 1.8. Until these issues are resolved, you can improve stability by downgrading your JDK to an older version (but no lower than JDK 1.6).

  • While the Android Studio download completes, verify which version of the JDK you have: open a command line and type javac -version. If the JDK is not available or the version is lower than 1.8, download the Java SE Development Kit 8.

  • If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following commands:

    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386 lib32stdc++6

  • If you are running 64-bit Fedora, the command is:

    sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686

Problem with downloading

  • If you would face any issue like message that your system is not compatible with Android Studio (it may happen when you're using web browser different than Chrome) download Android Studio from: http://tools.android.com/

That's it!