Tutorials
Android Studio

Installing Java JDK

If you have not already done so, download and install the Java 8 JDK. Note: Be sure you have the JDK, not just the SDK.

Configuring Java JDK

On Windows machines, you'll need to set the JAVA_HOME environment variable. There are multiple ways to do this. One way is to:

  1. Type environment in the search bar of the Control Panel
  2. Click "Edit the system environment variables"
  3. Then click "Environment Variables" on the Advanced tab
  4. Then click "New..." under the System variables section
  5. Enter JAVA_HOME for the Variable name and enter the appropriate path to the location of the JDK installation for the Variable value

    and click OK

If that doesn't work, try: System -> Advanced System Settings -> Environment Variables instead.

Installing Android Studio

To begin, download Android Studio from here and then run the executable to install Android Studio. Follow these steps through the installation process:

  1. Select Next > on the Welcome to the Android Studio Setup window
  2. Ensure that all boxes are checked and click Next > on the Choose Components window
  3. Select I Agree if you agree to the license agreement
  4. Change the Android SDK Installation Location to D:\Android and click Next >
  5. Select Next > on the Configuration Settings / Emulator Setup window using the recommended RAM allotment
  6. Select Install
  7. Select Next > once the installation is completed
  8. Select Finish to end the installation process

Running Android Studio

The first time you run Android Studio, you should do the following:

  1. If prompted, set the Android SDK path to D:\Android
  2. From the Welcome to Android Studio window select Configure
  3. Then select SDK Manager
  4. Click on Install X packages... to install the appropriate updates
  5. Read and accept the licenses (if you agree) and then click Install (this will take awhile)

Make/Open a Project

See lab assignment for details.1)

Create Virtual Device

An Android Virtual Device (AVD) can be used to emulate a physical Android device. When Android Studio is installed, it creates a default AVD. You will need to modify our BIOS settings in order to use the default AVD which uses Intel Virtualization Technology.2)
Alternatively, you can create an AVD that does not require BIOS changes and/or an AVD that emulates a different physical Android device. You can create an AVD that emulates a Nexus 7 tablet that does not require virtualization technology.

  1. Click on the AVD Manager icon in the toolbar
  2. Click on Create Virtual Device
  3. Select Tablet and Nexus 7 and then click Next
  4. Select the first option with armeabi-v7a in the ABI column and then click Next
  5. Click on Show Advanced Settings and scroll down to adjust the RAM requirement to 712 MB and then click Finish
1) Or figure it out yourself.
1) If you plan to do extensive Android development and can modify the BIOS on your computer to allow hardware emulation, you should select the Performance (Intel... option as well.
To enable hardware emulation on the HP ZBook:
  1. Press and hold F10 on a fresh boot to enter the BIOS Setup
  2. Select Advanced at the top center of the screen
  3. Select Device Configurations
  4. Scroll down and ensure that Virtualization Technology (VTx) is selected
  5. Select Exit and Yes to "Save Changes?"

Last modified: Monday, 15-Feb-2016 23:33:30 CST