Install jdk, android-studio, and genymotion on the command line in Ubuntu for android development.

Source: Internet
Author: User

Install jdk, android-studio, and genymotion on the command line in Ubuntu for android development.
Install JDKRun the following command to create a folder: unzip sudo mkdir/usr/lib/jvm
Sudo tar zxvf jdk-8u92-linux-x64.tar.gz-C/usr/lib/jvm set environment variable sudo gedit/etc/profile add environment variable content # set java environment
Export JAVA_HOME =/usr/lib/jvm/jdk1.8.0 _ 92
Export JRE_HOME =$ {JAVA_HOME}/jre
Export CLASSPATH =. :$ {JAVA_HOME}/lib :$ {JRE_HOME}/lib
Export PATH =$ {JAVA_HOME}/bin: $ PATH source/etc/profile update file test java-version: JDK version is successfully configured

Fan @ dell :~ $ Java-version
Java version "1.8.0 _ 92"
Java (TM) SE Runtime Environment (build 1.8.0 _ 92-b14)
Java HotSpot (TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

  Install android-studioNote ------- scientific Internet access is a prerequisite
Sudo apt-add-repository ppa: paolorotolo/android-studio Add the source sudo apt-get update of android-studio to update the software list sudo apt-get install android-studio // because the 64-bit system requires two 32 library file, very important. If these databases are not installed, they will not be able to be opened, and they will run normally // later. If you remember correctly, they will be the two. If not, please search for them by yourself. $ Sudo apt-get install libstdc ++ 6 $ sudo apt-get install lib32stdc ++ 6

Install genymotion

First go to genymotion's official website (http://www.genymotion.net/) to register an account, (free of charge), and then have the permission to download his latest file genymotionxxxxx64.bin A. binfile.

Then

Chmod + x genymotionxxxxx64.bin // grant the execution permission

./Genymotionxxxxx. bin-d/home/directory to be installed

Search geny in Dash to find the program.

Enter the account to create a virtual machine account as the fanbright@126.com (enter your account registered on the official website, and password)

// It is free for individual users, but has limited functions. It can only create one virtual machine, but is fast (it can be started in 25 seconds). It is suitable for beginners,

// If eclipse is used for development, you need to install a genymotion plug-in to use it. If android-studio is used, you can enable the Virtual Machine and click Run program to debug it.

 

 

 

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.