About Venkata Kiran

Kiran is a product developer working in medical domain. He worked on creating scalable java batch applications and is currently working on developing cross platform mobile applications. His current interests include automated testing of mobile applications.

Installing Android Studio and creating a new Android project on Android Studio

Android Studio IDE is launched at Google I/O 2013. Android Studio is based on  Intellij IDEA which aims to replace Eclipse + Android Developer Tools for Android development. And since Google itself is pushing it, it may catch up with eclipse soon.

Android has its pros and cons compared to eclipse.

+ Android Studio has better support for UI design and coding which comes handy when supporting devices of multiple resolutions.

+ Android Studio also has built in ProGuard and app-signing capabilities.

– As of now Android Studio cannot manage multiple projects in the same window. It opens a separate window for every project. I guess this is from Intellij IDEA and may not change soon.

– Gradle-based build support, but for users migrating from Eclipse this will be a learning curve.

Assuming Android SDK is already installed on your system,Download the latest version of Android Studio from Android Developer site. If not download the Android SDK.

http://developer.android.com/sdk/installing/studio.html

as1

Launch the downloaded EXE file, android-studio-bundle-<version>.exe.

Follow the set up wizard instructions to complete the installation.

as2

If JDK is not installed on your system, you will need to install latest version of Java also. Also you will need to set the system variables JDK_HOME and JAVA_HOME.

as3

Choose whether you want to limit the installation for only your profile or all the users using the system.

as4

Select the installation location.

as5

as6

as7

as8
Once the installation is completed, launch the IDE by clicking on the Android Studio from Programs.

Android Studio will launch displaying the below splash screen. It will take few seconds to launch the IDE.

as9

Some times the Android Studio(mostly on older versions) may fail to launch displaying the following error.

as10

To work around this issue, launch the Android Studio as Administrator.

In Android home screen, Select Configure –> Project Defaults –> Project Structure — Android SDK and configure the paths to your JDK and Android SDK.

as11

In the Android Studio home screen, click on ‘New Project’.

as12

Once you click on ‘New Project’, Android Studio will display the below screen for you to provide your application name, module name and package name. Also you can specify the Target SDK, Minimum required SDK, and the Android SDK version with which the application needs to be compiled with. And you specify one of the Android Studio’s built in themes.

as13

Next you will need to select the icons that will be displayed when the app is installed on devices. For now, let us leave them as it is and continue by clicking on Next.

as14

Then you need to select which type of activity that needs to be created. Select the activity and click on Next. If you don’t know which activity to choose, leave the Blank Activity as it is.

as15

Change the activity names with your preferred activity names and click on Finish.

as16

It will take some time to set up the project first time, since IDE will download several dependencies for gradle and indexing the project etc.

as17

Click on the Run button from the IDE, to start running the project.
as18

Then IDE will prompt you to select a device or emulator from the available list of devices or emulators configured on the system.

as19

Here I have a android emulator android_2_3_3 configured on my system and I select that Android Virtual device and click on Ok.

It will take painfully long time to launch the emulator, if it is not launched earlier. It is recommended to start the emulator manually and choose that emulator from ‘Choose a running device’ option.

The HelloWorld application we created will be installed into the emulator/device and will be launched.

as21

 

Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

JPA Mini Book

Learn how to leverage the power of JPA in order to create robust and flexible Java applications. With this Mini Book, you will get introduced to JPA and smoothly transition to more advanced concepts.

JVM Troubleshooting Guide

The Java virtual machine is really the foundation of any Java EE platform. Learn how to master it with this advanced guide!

Given email address is already subscribed, thank you!
Oops. Something went wrong. Please try again later.
Please provide a valid email address.
Thank you, your sign-up request was successful! Please check your e-mail inbox.
Please complete the CAPTCHA.
Please fill in the required fields.

One Response to "Installing Android Studio and creating a new Android project on Android Studio"

  1. Jack Pryne says:

    Thanks for the pointers! I’m a JS coder, but new to Java & Android dev. What would make this tutorial better is linked definitions to some of the new terminology, i.e. ‘module name’ and ‘package name’, & maybe a bit more info on some of the other new terms too.

Leave a Reply


3 × five =



Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy | Contact
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

Get ready to Rock!
You can download the complementary eBooks using the links below:
Close