Tutorial #25: HelloWorld application using Android Studio

Hi guys!

Google recently announced a new IDE for Android called Android Studio. It’s free and can be downloaded from over here.

Android Studio is a new Android development environment based on IntelliJ IDEA. It is similar to Eclipse with the ADT Plugin and provides tools for development and debugging.

As the Android Studio is available currently as an early access preview there are several features that are not yet implemented and you may encounter bugs when you are trying it out for yourself. Through this post, I will tell you how to install Android Studio on your Windows 7 machine and create a new HelloWorld application!

Requirements: Windows 7(64 bit), JDK 1.7(get the latest update preferably), Gradle-1.6.

We need to do a few workarounds to start using Android Studio on Windows 7. Follow these steps after you have downloaded and installed Android Studio.

Step 1: Create new Environmental variable.

Right click My Computer–>Properties. Click on Advanced System Settings. Select Environmental variables. Create a new System variable named JDK_HOME.

Variable Name: JDK_HOME
Variable value: C:\Program Files\Java\jdk1.7.0_05

Step 2: Download Gradle

This StackOverflow link will help you for this step. Follow the workaround by downloading Gradle and then copying the appropriate files to the mentioned Studio locations. Finally, restart Android Studio.

Step 3: Create a new Android Project as you would do normally in Eclipse

Create new Android project

android_studio_2

android_studio_3

android_studio_4

android_studio_5

android_studio_6

android_studio_7

Finally, run the application HelloWorldStudio by clicking on the green color play button at the top.

Output

Output

Karan Balkar About Karan Balkar
self proclaimed extraterrestrial fandroid, computer engineer, amateur gamer and die hard punk rock fan!

8 thoughts on “Tutorial #25: HelloWorld application using Android Studio

    • Thanks a lot! Android Studio is pretty new and it’s just a preview that Google offers. I would always recommend reading the Android Developer’s guide in case you have any queries! :)

  1. “…and then copying the appropriate files to the mentioned Studio locations.”
    What files in what location?
    PLEASE EXPLAIN IN DETAIL.

    • Just see one of the answers in the StackOverflow link that I have mentioned. Copy the contents of gradle-1.6 to location –> \Android\android-studio\plugins\gradle and Copy gradle.jar to location–> \Android\android-studio\lib\
      That’s what I meant by copying the files to the mentioned studio locations. Hope it helps! :)

  2. Pingback: 18 Highly Useful App TutorialsDzineblog360 – Design and all about it!

  3. Pingback: Discover how to build an app with these easy-to-follow tutorials | Appsdb.net

  4. Pingback: Tutorial #25: HelloWorld application using Android Studio - appgong

Leave a Reply