IntelliJ idea + Android SDK + genymotion emulator build the best Android development environment _android

Source: Internet
Author: User
Tags virtual environment

have been using the Eclipse environment to develop Android, but also a taste of Android studio to develop a variety of IDE with the Android SDK and the original SDK Android emulator of the flavor may be a glimpse of Eclipse's Ultra long boot time seems to be on the Android emulator with this superstar than to see who is more late, the Android studio's big version from the launch came two years after today still wandering under 1, not to say that the baby does not know when to grow up, I have to say eldest brother I really dare not use you.

This article describes the lorinnn in the development of the Android process of continuous tumbling crawl to install another set of development environment, I believe you have a good experience after the use.

IntelliJ idea: In the eyes of the programmer for Java development of the IDE, many people still love eclipse, the eclipse-oriented plug-ins are countless, admittedly, eclipse is a very good open source software, but if you pursue higher development efficiency, The pursuit of a more innovative and dazzling GUI interface, this is recognized as the best Java development tool worthy of your own.

Android sdk:google Android Essentials SDK, no matter what IDE development you use, you must download and install.

Genymotion Emulator: If you have no patience with native Android emulator, if you are lucky enough to see this article, you will find that Android emulator is so fast that Android Emulator's world can be so good, genymotion is a complete set of tools that provide the Android virtual environment, which is simply the Gospel of developers, testers, promoters, and even gamers. I have in the artifact quickly introduced Android ultrafast simulator genymotion, Seconds Kill Machine, today officially as our development environment dedicated emulator.

I'll explain in detail how to install this set of environments below.

Installation Environment: Windows 7 64bit
Installation software: Jdk1.6,intellij idea 12,android SDK, genymotion

Installing JDK

JDK this thing is needless to say, to the Oracle website directly download, it should be noted that up to now (2014/05/13) The latest JDK has been updated to the 8U5, but in order to compatible with other software in the environment, it is recommended to install JDK (6/7). I installed the JDK7. The installation process is very simple, direct download Double-click Install on OK, do not need to add environment variables.

Install IntelliJ Idea

Here I recommend using it as the IDE to develop Java programs, download the address and the official website: http://www.jetbrains.com/idea/, you need to suggest that IntelliJ idea is a charging software, but in vast huaxia, this thing can not be difficult to pour us, Baidu a search ' IntelliJ idea registration code ', should be able to solve your problem, pay attention to download version, I installed is IntelliJ IDEA12.

Download the Android SDK

Next install Andoird SDK, download address: http://developer.android.com/sdk/index.html
Now the Android SDK is bundled with ADT and Eclipse, but it doesn't matter if we can download it directly, and then we can see that the SDK is placed in a separate directory, and you can use the SDK alone.

Intelij idea uses the Android SDK

After opening idea and binding the Android SDK, we can use it to develop the Android program, as follows:

Open IntelliJ idea, and select Create New Project.

In the lower left corner, click on the Android Module in the black frame and fill out project name and project Location in the right pannel, then the most important step is to select Project SDK, click on the back side of new, Just unzip the SDK path just to find, for example, I will develop a HelloWorld program, fill in as above.

Next, as with Eclipse, fill in the package name and activity name, and most importantly, target device must choose Show Device Chooser dialog.

At this point, we can use the Android native emulator to run this program, but this is not our ultimate goal, we need to use genymotion emulator to replace this bi.

Install Genymotion

Genymotion unexpectedly also out of the Chinese version, it seems that it also began to attach importance to the Chinese market, of course, whether Chinese or English we have to first download and install the goods, transmission door.

This eliminates the download and installation process, after installation, found that the goods are required to register (because it provides cloud services), as follows:

After logging in, you can choose the rom you need, because genymotion integrates the most mainstream ROM of the real machine, and then creates multiple virtual devices based on the rom you download, for example, I have downloaded almost all of its ROM, as follows:

Installing the Genymotion Plugin

After the installation of Genymotion, the next action is to install the Genymotion plug-in for IntelliJ, only for IntelliJ installed on its plug-ins, we can intellij on the free call genymotion.

Plugin Download Address: https://cloud.genymotion.com/page/launchpad/download/(also need to log in) or try to download: http://plugins.genymotion.com/ Plugins/idea/1.0.3/genymotion-idea-plugin-20140326.jar

The installation of the plugin can is done by launching idea and going to "file/settings" menu, then go to "IDE Settings "section, then" Plugins ".
Click on "Browse repositories" button and search "Genymotion" entry. Follow the steps indicated by idea.

This is from the official website to copy the installation guide, we do not look ugly understand, so at this point our environment has been built.

Test environment

Turn on the IntelliJ and make sure that the Genymotion plugin is installed correctly, the red cut above the image below is the Genymotion plugin button, and by clicking this button we need to create Android virtual device, I've created multiple, Here I choose to start with Lorin_nexus and launch it.

The image below is already started by the Genymotion simulator, is not really very cool!?

Then we can create an Android project and put the project in the Android development, the last picture of the red box in the section, the default is the test state, and then click on the red frame of the run button, that will pull down the Choose device window, That's the most important thing I'm stressing. Target device must choose the dialog reason for show Device Chooser.

Click on the red box behind the Run button, your program is target to the Genymotion simulator, how, the speed is really great oh, more about genymotion function will be in the next development process.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.