[Fun Ubuntu] 02. Build an android Development Environment on Ubuntu

Source: Internet
Author: User
1. Basic Environment Construction

1. Official Website http://developer.android.com/sdk/index.html, download adt-bundle-linux-x86_64-20130729.zip

2. decompress the SDK

bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft$ unzip adt-bundle-linux-x86_64-20130729.zip

Bixiaopeng @ bixiaopeng-to-be-filled-by-O-E-M :~ /Soft $ LS-Al total usage 1098596drwxrwxr-x 6 bixiaopeng 4096 August 21 11:48. drwxr-XR-x 26 bixiaopeng 4096 August 21 13:06 .. drwxr-x --- 4 bixiaopeng 4096 July 29 15:23 adt-bundle-linux-x86_64-20130729-rw-rw-r -- 1 bixiaopeng 458006784 August 20 20:59 adt-bundle-linux-x86_64-20130729.zip

3. Configure Environment Variables

Vim ~ /. Bashrc Add the following environment variables
Export android_sdk =/home/bixiaopeng/soft/adt-bundle-linux-x86_64-20130729/sdkexport Path = $ android_sdk/platform-tools: $ android_sdk/tools: $ path

4. Test it.

bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft$ adb shellerror: device not found

If the above information is returned, the configuration is successful.

2. Use eclipse provided by Android

Use the Android-provided ADT-bound eclipse development, so that you do not need to install the ADT plug-in eclipse.

bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft/adt-bundle-linux-x86_64-20130729$ lseclipse sdk


3. Use Android Studio

1 .:Http://developer.android.com/sdk/installing/studio.html
I downloaded Android studio v0.2.xfor Linux.

2. How can I open Android studio after the download?
# Run studio. Sh In the Android-studio/bin directory.

Bixiaopeng @ bixiaopeng-to-be-filled-by-O-E-M :~ /Soft $ CD Android-studio/binbixiaopeng @ bixiaopeng-to-be-filled-by-O-E-M :~ /Soft/Android-studio/bin $ LS-Al total usage 128drwxr-x --- 2 bixiaopeng 4096 August 21 13:24. drwxr-x --- 7 bixiaopeng 4096 July 12 00:27 .. -RW-r ----- 1 bixiaopeng 136 July 11 23:48 appletviewer. policy-rwxr-x --- 1 bixiaopeng 22791 July 11 23:48 fsnotifier-rwxr-x --- 1 bixiaopeng 29155 July 11 23:48 fsnotifier64-rw-r ----- 1 bixiaopeng 4176 July 11 23:48 idea. PNG-RW-r ----- 1 bixiaopeng 6913 July 11 23:48 idea. properties-rwxr-x --- 1 bixiaopeng 281 July 11 23:48 inspect. sh-RW-r ----- 1 bixiaopeng 8531 July 11 23:48 libbreakgen64.so-RW-r ----- 1 bixiaopeng 6807 July 11 23:48 libbreakgen. so-RW-r -- 1 bixiaopeng 0 August 21 13:24 libpeerconnection. log-RW-r ----- 1 bixiaopeng 2275 23:48 log. XML-RW-r- ---- 1 bixiaopeng 282 July 11 23:48 studio64.vmoptions-rwxr-x --- 1 bixiaopeng 6505 July 11 23:48 studio. sh-RW-r ----- 1 bixiaopeng 290 July 11 23:48 studio. vmoptionsbixiaopeng @ bixiaopeng-to-be-filled-by-O-E-M :~ /Soft/Android-studio/bin $ sh studio. Sh

Tip: JDK 1.6 must be used. The first time you open JDK, you will be asked to specify the jdk1.6 path.

3. Configure android
Studio Environment Variables

# View path bixiaopeng @ bixiaopeng-to-be-filled-by-O-E-M :~ /Soft/Android-studio/bin $ PWD/home/bixiaopeng/soft/Android-studio/bin # edit. bashrcbixiaopeng @ bixiaopeng-to-be-filled-by-O-E-M :~ /Soft/Android-studio/bin $ Vim ~ /. Bashrc # Add the following configuration at the bottom: Export android_studio =/home/bixiaopeng/soft/Android-studio/binexport path =$ {android_studio }: $ path # Make the configuration take effect immediately bixiaopeng @ bixiaopeng-to-be-filled-by-O-E-M :~ $ Source ~ /. Bashrc # In any path can be directly open studiobixiaopeng @ bixiaopeng-to-be-filled-by-O-E-M :~ /Soft/Android-studio/bin $ Cd ~ Bixiaopeng @ bixiaopeng-to-be-filled-by-O-E-M :~ $ Studio. Sh

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.