Welcome to Blogs @ Andrew Qu
Blog Index
All blogs
Search results

Starting with Android Studio

Summary

With the recent release of Android Studio (out of beta), it is time to switch Android application development from Eclipse IDE to Android Studio. I am trying it out first and the procedures are not as straight forward as I would expect. Therefore, in this blog, I will detail the installation procedures to avoid some pitfalls for whoever reading this post.

Install Android Studio
  1. Goto developer.android.com
  2. Click to download the installer file. The file is about 900MB.
  3. Run the downloaded exe file to install and follow instructions.
  4. The above should install Android studion and the required SDK.
Missing Java Virtual Machine (JDK)

Now run Android Studio from windows start menu. If you get the following prompt:

then you need to install JDK8.0. Otherwise, skip this section.

  1. Goto JDK Download page.
  2. Select download jdk-8u25-windows-i586.exe (157MB).
  3. Run to install (default to C:\Program Files (x86)\Java\jdk1.8.0_25)
  4. Set JAVA_HOME environment variable using the following 2 steps:
  5. Click windows [Start], in the search box, type "env". In the search result, select "Edit the system environment variables".
  6. In the subsequent dialog, click [Add New] and set as:
Fixing Android SDK if Missing

Now restart Android Studio, you should see the following window:

  1. Click on [Configure], and then [SDK Manager]. In SDK manager, install required SDK packages.
  2. If [SDK Manager] is grayed, then you need to instal Android SDK from Android SDK Download
  3. On the download page, click:
  4. Once installed, you may need to set the path to the SDK. In Android Studio, goto [Configure] -> [Project Defaults] -> [Project Sturcture] -> [Android SDK location] = path (e.g. c:\AndroidSDK\sdk).
  5. Now you are ready to create an Android Application project. Please see many of online resureces for this, or see my next blog post.

Ads from Google
Dr Li Anchor Profi
www.anchorprofi.de
Engineering anchorage plate design system
©Andrew Qu, 2015. All rights reserved. Code snippets may be used "AS IS" without any kind of warranty. DIY tips may be followed at your own risk.