How to Download Android Eclipse/Android Studio and Run It

This is all for Windows.



  

Android Studio

  1. Go here to download Android Studio.
  2. Click on the "DOWNLOAD ANDROID STUDIO FOR WINDOWS" button. Check the box that you agree to the terms and conditions, and then click the download button again.
  3. Run the .exe file that is being download. Go through the installer.
  4. Once the installer is finished, make sure you have a shortcut to launch Android Studio. If you didn't select that during install, you can go to the location that Android Studio was installed to (by default, it's C:\Program Files\Android\Android Studio\), and then go into the \bin\ folder, then create a shortcut for the "studio64.exe file". Right click and go to "Send to > " and then "Desktop (create shortcut)", or right click and choose "Create shortcut" and then drag it to the desktop.
  5. Double click and run the shortcut. If it runs without error, you can stop the tutorial here. But if you receive the following error (common), continue onto the next steps.

  6. The error above is because Android Studio cannot locate the JDK directory on your computer. So the first thing you have to do is make sure you have a JDK (not just JRE) downloaded to your computer. The three most common places in your computer are: C:\Program Files (x86)\Java\ (32-bit), C:\Program Files\Java\ (64-bit) or (unlikely) C:\Java\. Make sure that inside the Java folder, you have a JDK downloaded (not just a JRE).

    Another way to check if you even have a JDK is to open up Windows Command Prompt (cmd.exe) and type javac -version

    Go here to download the JDK (x86 is for 32-bit operating systems and x64 is for 64-bit).
  7. The next thing you have to do is link your JAVA_HOME environment variable to point to the JDK folder. Open up the start menu and type "edit envir" or something along those lines to search for "Edit evironment variables for your account" and then select that. You should then see this pop up:



    You should at least have TEMP and TMP variables. If you don't have a JAVA_HOME variable, click "New..." and create one with the variable name as JAVA_HOME and the variable value as the location of your JDK folder. For example, the value might be C:\Program Files\Java\jdk1.8.0_31. You can copy that location in Windows Explorer by navigating to it and copying the address bar. Make sure the you are using backslashes.

    If you already have a PATH variable, you can append to it. Click on it and then click "Edit...". Separate each location with semi-colons (;). For example, if your PATH value is already C:\Some Location, then you can put a semi-colon at the end of it, and then a new location. For example, it would then be C:\Some Location;C:\Program Files\Java\jdk1.8.0_31.
  8. Run the program and start learning!

  

Android Eclipse (outdated and not advised)


          Created: June 5, 2015
Completed in full by: Michael Yaworski