Intellij idea + Android SDK + genymotion emulator to create the best Android development

Source: Internet
Author: User

Original: Intellij idea + Android SDK + genymotion emulator to create the best Android development

Intellij idea + Android SDK + genymotion emulator to create the best Android development
Http://www.jb51.net/article/52609.htm This article describes lorinnn in the development of the Android process continues to crawl the installation of a set of development environment, I believe you have a good experience after use.

has been using the Eclipse environment to develop Android, but also early adopters have used Android studio to develop, a variety of IDE with the Android SDK and SDK native Android emulator taste Maybe we all enjoy, Eclipse's ultra-long boot time seems to be in with Android emulator this super big shot more late, Android Studio large version from the launch came two years later today still has been wandering under 1, do not say swaddling baby don't know when can grow up, Have to say Big Brother I really dare not use you.

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

Intellij idea: In the programmer's eyes for Java development of the IDE, many people still love eclipse, eclipse-oriented plugins 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 tools are worth your own.

Android sdk:google Android Essentials SDK, no matter what IDE development you use, first of all you must download the installation.

Genymotion Emulator: If you've been fed up with native Android Emulator, if you're lucky enough to see this article, you'll find that the original Android Emulator will also be so fast that the original Android The world of Emulator can be so beautiful, genymotion is a complete set of tools that provide Android virtual environments that are simply the gospel of developers, testers, marketers, and even gamers. I have in the artifact quickly introduced the Android super fast simulator genymotion, second kill the real machine, today formally as our development environment dedicated emulator.

I'll show you how to install this environment in more detail below.

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

Installing the JDK

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

Install IntelliJ Idea

Here I recommend using it as the IDE to develop Java programs, and official website: http://www.jetbrains.com/idea/, need to prompt is IntelliJ idea is the fee software, but in accommodating huaxia, this thing can not pour us, Baidu a search ' IntelliJ Idea Registration code ', should be able to solve your problem, note the download version, I installed IntelliJ IDEA12.

Download the Android SDK

Then install Andoird sdk,: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 can be used alone.

Intelij idea using 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 Android Module in the black border and fill in Project name and project location in the right pannel, then the most important step is to select the Project SDK, click on the back side of new, Find the SDK path just extracted, such as I will be developing a HelloWorld program, fill out as above.

Next, as with Eclipse, fill out the package name and activity name, the most important thing is that target device must choose Show Device Chooser dialog.

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

Installing Genymotion

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

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 select the ROM you need because genymotion integrates the most mainstream real-machine ROM in the market and then creates multiple virtual devices based on the rom you download, such as I have downloaded almost all of the ROM they provide, as follows:

Installing the Genymotion Plugin

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

Plugin: 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 be do by launching idea and going to "file/settings" menu, then go to "IDE Settings "section and then" Plugins ".
Click on "Browse repositories" button and search "Genymotion" entry. Follow the steps indicated by idea.

This is from the official online copy of the installation guide, everyone is not ugly understand, so this is our environment has been built.

Test environment

Open IntelliJ and make sure the genymotion plug-in is installed correctly, the top of the red haircut is the genymotion plug-in button, by clicking this button we need to create Android virtual device, I have created multiple, Here I choose Lorin_nexus start and start it.

is the Genymotion simulator that has been started, is not really very soon cool!?

Then we can create an Android project, and put the project in the Android development state, the last picture of the red box, the default is the test state, and then click the Red button, the Choose Device window will be recalled below, This is one of the most important things that I'm stressing is that target device must choose the dialog reason for show Device Chooser.

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

Intellij idea + Android SDK + genymotion emulator to create the best Android development

Related Article

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.