0% found this document useful (0 votes)
97 views

Installing Android Studio On Windows - 2015

A simple guide for installing Android Studio on a windows machine - had to make this for people who wouldn't know any better for a small company I used to work for - pretty much meaningless!

Uploaded by

JaceJMcPherson
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views

Installing Android Studio On Windows - 2015

A simple guide for installing Android Studio on a windows machine - had to make this for people who wouldn't know any better for a small company I used to work for - pretty much meaningless!

Uploaded by

JaceJMcPherson
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Android Studio Setup Instructions - Windows

In order to start Android Programming, please install the following software


on your computer (laptop/desktop):

Java JDK
Android Studio IDE
Android Packages

An important face about Android programming is that all tools that we need
are free and can be used on Linux, Windows or Mac machine. The
instructions given below are in reference to Windows machine.

Installing the JDK


Though most computers have the Java Runtime Environment (JRE) for
running java applications, unless youve developed in Java before, yours
likely will not have the Java Development Kit (JDK) installed. To set it up,
follow the steps given below:

Before downloading, read Windows system requirements for JDK:


http://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_
system_requirements.html
Also, read and verify your browser requirements here:
http://www.java.com/en/download/faq/java_win64bit.xml
Download the JDK herek the latest as of this writing is 8u45:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Click Download under JDK
Accept the License Agreement, then download the appropriate version
of Java on your machine.
Run the JDK file once its downloaded, and follow the wizards
instructions
Open command prompt (To access compand prompt click Start>Run
and type cmd.exe and press enter. If you are running Windows 8, use
the global search either by accessing the side bar and clicking Search,
or using Windows Key + S, and search for cmd.). Type in javac into
the command prompt.
The command shouldnt be recognized so you need to take some
additional steps to setup the JDK. This means that Windows cant find
the JDK executable.
Navigate to program files, then open the Java folder.
If Windows is 64=bit and the 32 bit JDK was installed, navigate to
Programs Files (x86) instead of Program Files.

Open the JDK folder (example: jdk jdk1.8.0_20), open the bin folder,
right click the javac file and press properties, then copy the file path
listed against Location: (example C:\Program Files\Java\jdk1.8.0_20\bin)
o NOTE: Your Java path may not be exactly the same, depending
on version number and/or operating System. Please change the
path name to match the location of the Java installation directory
on your machine. (i.e. \Java\jdk1.8.0_20\bin)
Click Start and open the control panel. Open System
Now, click Advanced and click Environment Variables.
Under user variables for XXXXX, Press New, name the variable
Path, and paste the file path (Example: C:\Program
Files\Java\jdk1.8.0_xx\bin) you copied earlier into the variable value
field and click OK.
o NOTE: Remember to change the file path for Android based on
YOUR installation directory, not the one provided in this example.
Now, go back to your command prompt and type javac. A list of
information should show up now, meaning you have successfully setup
the JDK and your computer may now interpret Java source code int Java
byte code to be run in a Java machine.

Installing Android Studio and Android Virtual Device (AVD)

Go here to download the Android Studio installer:


http://developer.android.com/sdk/index.html
Click Download Android Studio for Windows, check I have read and
agree with the above terms and conditions, then click Download
Android Studio for Windows
Run the installer once it has finished downloading (its about 800MB).
Run the installer, click Next,
make sure all the options are
selected as shown (Android
Studio, Android SDK, Android
Virtual Device, Performance
(Intel HAXM) )

Continue through the dialog. You


may choose to change the
Android Studio or Android SDK
installation directory. If you
choose to change your SDK
directory to somewhere other
than the AppData folder, it is
recommended you create a
folder in My Documents or
similar, easily accessible folder
location.

The next screen will be basic


emulator setup. The Android
Studio installer manages most
automatic configuration,
however it does leave the
maximum amount of RAM
allocation up to you. If you
choose to change the
recommended RAM amount for
your AVD, you can do so in this
dialog.

After you have done the necessary setup, click Install. Android Studio
will run through the setup process.
Run Android Studio upon completion. You should be prompted to
selected a theme, IntelliJ or Darcula. A welcome screen will open. Click
Configure, then SDK Manager.
In the SDK Manager, download the latest SDK package (at the time of
writing, API 22), as well as Android 4.0.3 (API 15). In addition, download
API 10 and 8 if you plan to develop for compatibility with those older
versions. Also check Android Support Library, Google Play Services,

Google USB Driver under Extras, as well as any updates for SDK
packages that were already installed.
Click Install xx packages, then accept all license agreements.
These packages should
download and install. You can
now close the SDK Manager

Using a Physical Device

Connect the device to the


computer
Enable USB debugging in
Androids settings (different
procedure for different phones,
may not be necessary).
Accept the connection key if there is a message received asking for
acceptance
Running the program from Android Studio should automatically install
in the device, with debugging enabled.
See http://developer.android.com/tools/devices/index.html for
information about managing AVDs and more information about the
emulator that runs AVDs.

You might also like