Вы находитесь на странице: 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:

Also, read and verify your browser requirements here:
Download the JDK herek the latest as of this writing is 8u45:
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
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:

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

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

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

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
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.