Android development blog
Tutorials about Android dev topics

Android Studio with alternative emulator:Genymotion

by Francesco Azzola, July 1, 2013
Topics covered

How to install Genymotion

Android Studio with Genymotion

AVD

In this post I will explain how to setup Android development environment using Android Studio and Genymotion.
Moving from Eclispe/ADT to Android Studio I was exploring some alternative configuration to improve my building environment. I came across a nice Android device emulator called Genymotion. I find it very interesting and really fast so that I decided to use it as my device emulator. Everything is very easy.
What do you need?
  • Android Studio already installed
  • Oracle VM VirtualBox ( you can download it here)
  • Genymotion Android emulator (download it here)
  • Genymotion Android studio plugin

Installing Oracle VM VirtualBox

If you use Windows platform you have everything in your download otherwise you have to download the VM VirutalBox by yourself and install it. The process is very straightforward so I won’t go into the details. This step is necessary otherwise the Android Emulator won’t start.

Installing Genymotion Android device emulator

The first thing you have to do is creating a free account so that you can download the emulator. You can choice among different platforms, in my case I selected Mac OS X. Once you have downloaded it and installed it you have something like that:
Schermata 2013-06-30 alle 22.35.19
Where you can have different emulator available. You select one and download it from the net. At the end you have your emulator ready to run:
Schermata 2013-06-30 alle 22.40.25

Installing Android Studio Plugin

In order to integrate the development tool with the emulator you have to install a plugin for Android Studio. Go to Preferences and look for Plugin the search box. Then you add the plugin you have already downloaded and you have:
Schermata 2013-06-30 alle 22.37.56
Now you can run your Android project and you will find:
Schermata 2013-06-30 alle 22.43.20
The emulator is completely integrated in your development tool.The first time you run the emulator you can find an alert asking the Android SDK installation path:
Schermata 2013-06-30 alle 22.41.10
Once you have configured it you can run your project:
Schermata 2013-06-30 alle 22.45.21

4 comments:

  1. Thanks, but I found some differences from my configuration:

    -) The genymotion plugin must be installed from repository in IDE configuration

    -) genymotion vm must be started before running android program

    -) ide runner configuration must be changed selecting 'show chooser dialog', otherwise ide uses by default avd...



    Hi, Marco

    ReplyDelete
  2. Android Studio doesn't "see" any GenyMotion device when I try to run my application (even if I have one running in VB)...

    ReplyDelete
  3. Yes Android Studio is rocking. :) :)
    Nice Post. Keep sharing like this.
    A Promising IDE for Android Developers – Google’s Android Studio

    ReplyDelete

Related Posts with Thumbnails