Environmental building required to Http://pan.baidu.com/s/1gd1Kf4Z download
Note:This assumes that Ubuntu user name Chenfei development related all stored under/home/chenfei/dev/First, prepare1.1 Download JDK http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Select Accept License Agreement select Linux x64 tar.gz download here to select jdk-7u51-linux-x64.tar.gz to download the file:
/home/chenfei/dev/jdk-7u51-linux-x64.tar.gz 1.2 Download Android SDK http://developer.android.com/sdk/index.html
Select a different platform File:
/home/chenfei/dev/android-sdk_r22.3-linux.tgz1.3 Downloads IntelliJ Idea http://www.jetbrains.com/idea/http://www.jetbrains.com/idea/download/
Choose Linux, download Community Edition versionFile:
/home/chenfei/dev/
ideaic-13.0.1.tar.gz1.4 Downloads Genymotion andIntelliJ Idea's genymotion pluginhttps://cloud.genymotion.com/page/launchpad/download/
File:
/home/chenfei/dev/genymotion-2.0.3_x64.bin
/home/chenfei/dev/genymotion-idea-plugin-20130716.jar
1.5 Register Genymotion https://cloud.genymotion.com/
Second, installationOpen Terminal/Terminal execute the following command to enter the Dev directory: CD dev/2.1 Installing the JDKTar zxvf jdk-7u51-linux-x64.tar.gz directory:
/home/chenfei/dev/jdk1.7.0_512.2 Install the Android SDK tar zxvf android-sdk_r22.3-linux.tgz directory:
/home/chenfei/dev/android-sdk-linux2.3 Installing Visutalboxwget-q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc-o-| sudo apt-key add-sudo sh-c ' echo ' deb Http://download.virtualbox.org/virtualbox/debian quantal non-free contrib ">>/etc/apt/ Sources.list.d/virtualbox.org.list ' sudo apt-get update sudo apt-get install virtualbox-4.3 2.4 Installing Genymotionchmod +x Genymotion-2.0.3_x64.bin./Genymotion-2.0.3_x64.binDirectory:
/home/chenfei/dev/genymotion2.5 Installing the IntelliJ idea tar zxvf ideaic-13.0.1.tar.gz directory:
/home/chenfei/dev/idea-ic-133.331Third, the configuration3.1 Configuring JDK Execution:
sudo gedit/etc/profile Open the profile file, copy the following to the end of the file, and save:Export JAVA_HOME=/HOME/CHENFEI/DEV/JDK1.7.0_51 export JRE_HOME=${JAVA_HOME}/JRE export classpath=. : ${java_home}/lib:${jre_home}/lib export Path=${java_home}/bin:${path} Logout login 3.2 Configure Android S DK Execution:
/home/chenfei/dev/android-sdk-linux/tools/androidOpen Android SDK Manager wait for the networked load packages complete Install: Tools &NB Sp Android SDK platform-tools A Ndroid SDK build-tools Android 4.4.2 (API) documentation for Android SDK SDK Platform & nbsp ARM EABI v7a System Image &NBSP ; Intel x86 Atom System Image Google APIs &NBSP ; Sources for Android SDK Extras Android support Library Click Install 9 Packages -ChOose Packages To install--select installation under Install---download Wait for the installation to complete, close the Android SDK Manager window execution:
sudo gedit/etc/profileOpen the profile file, copy the following to the end of the file, and save: Export Android_sdk_home=/home/chenfei/dev/android-sdk-linuxExport Path=${android_sdk_home}/tools:${android_sdk_home}/Platform-tools:${path}3.3 ConfigurationgenymotionPerform:
/home/chenfei/dev/genymotion/
genymotion Open genymotion3.3.1 New virtual device Add a first virtual device----"Virtual Device Creation Wizard" Con Nect- "Connect to Genymotion Cloud"Username- Password- ConnectSelect a virtual device-- Next- "Name of the genymotion virtual device to create" -Next -- "Retrieve and deploy Genymotion virtual device"Wait for the download to complete-- Finish3.3.2 Settings General Adb/home/chenfei/de V/android-sdk-linux OK3.4 Configuration IntelliJ ideaOpen the Home folder to enter the directory:/home/chenfei/dev/idea-ic-133.331/bin/Double clickidea.sh, click "Run" to open IntelliJ idea I does not has a previous version of IntelliJ idea or I do not want to import my settin GS--OK 3.4.1 Lock to launcher right click on "IntelliJ idea" icon on launcher lock to launcher 3.4.2installing IntelliJ Idea's Genymotion plugin
Plugins--Install plugin from disk--
/home/chenfei/dev/genymotion-idea-plugin-20130716.jar--OK---Restart 3.4.2 Create Empty Project Fin Ish--"Empty Project--IntelliJ idea 13.0.1"Close the Project Structure 3.4.3 configuration IntelliJ idea 3.4.3.1 View -Toolbar3.4.3.2 View--Tool Buttons 3.4.3.3 File -Settings ...--"Settings" genymotion---Select the path to the Genymotion folder -
/home/chenfei/dev/genymotion--OK---OK 3.4.3.4Pending AdditionsIv. Development 4.1 Creating an Android Module File----and New module -"New Module"Application Module -Module name -Module SDKModule Name:helloword Module Sdk:new ...-"Cannot Create SDK" OK--"Select Home Directory for JDK"
/home/chenfei/dev/jdk1.7.0_51--OK--"Select Home Directory for Android SDK"
/home/chenfei/dev/android-sdk-linux--OK---"Create New Android SDK" OK Next--Application name---Package name*--Create ' Hello, world! ' activity---activity name--S How Device Chooser Dialog --and Finish
4.2 Run 4.2.1 Run the Genymotion virtual device, click "Genymotion Device Manager" To select the virtual device created in 3.3.1--Start ... Wait until the virtual device starts to close "Genymotion device Manager" 4.2.2 Run Android Program click---"Choose device"--Ch Oose a running device--Select the virtual appliance you just started--OK
Ubuntu + IntelliJ idea + genymotion build Android development environment