Android development environment built under Ubuntu 12.10

Source: Internet
Author: User
Tags android sdk manager acer

Preparation instructions, Ubuntu above is no RMP tool, so we download the time is to download the tar package.

1. Installing the JDK

Download Java JDK for Linux on the Oracel official website.

After downloading, copy this file to the directory you want to place and unzip it.

Name of the tar zvxf jdk. Tar

Then configure the environment variables, you need to switch to root user rights.

Setting switch to root user needs to set password for root:

Sude passwd Root

Then enter the password two times, after the successful setting, switch to root user rights.

Su Root

Then enter the password, and after success, start editing the JDK environment variables.

Gedit/etc/profile

This will pop up the editor and add these directly to the top of the file.

Java_home=/opt/java/jdk1.8.0_25

Path= $JAVA _home/bin: $PATH

Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

Export Java_home

Export PATH

Export CLASSPATH

Note: Java_home writes the directory where you installed the JDK. Edit is complete, save, and then close.

2. Install Eclipse

On Elicpse's official website, download ecliapse for Linux.

After downloading, copy this file to the directory you want to place and unzip it.

Name of the tar zvxf jdk. Tar

At this point, double-click Eclipse to run.

3. Install the Android SDK

Download the Android SDK on the Android website.

The same needs to be extracted to the directory you want to put, note that this directory should not be placed under the root control of the directory, otherwise it is easy to cause the SDK to be unable to update.

4. Installing ADT

The same as under Windows, directly in the Eclispe->help->installnew software, and then enter in the Address bar:

Https://dl-ssl.google.com/android/eclipse

When the DDMS appears, tick, then next, the next step is ready.

The installation will pop up to let you choose the path of androidsdk or direct download, this time we can choose the path of step 3.

5. Updating the Android SDK

After installation, open eclipse you will find out how to start it without the Android SDK manager? You need to open the Adnroid SDK directory through the terminal and enter

./android

You can open Sdkmanager.

6. Real-Machine Commissioning

Give the system a USB configuration file first

sudo gedit/etc/udev/rules.d/50-android.rules

Input

subsystem== "USB", sysfs{idvendor}== "0bb4", mode= "0666"

Then save the exit. Perform this configuration,

sudo chmod a+rx/etc/udev/rules.d/50-android.rules

Then restart ADB or eclipse to take effect.

If the test model is more, you can add the following:

#Acer 0502

subsystem== "USB", sysfs{idvendor}== "0502", mode= "0666"

#Dell 413c

subsystem== "USB", sysfs{idvendor}== "413c", mode= "0666"

#Foxconn 0489

subsystem== "USB", sysfs{idvendor}== "0489", mode= "0666"

#Garmin-asus 091E

subsystem== "USB", sysfs{idvendor}== "091e", mode= "0666"

#HTC 0bb4

subsystem== "USB", sysfs{idvendor}== "0bb4", mode= "0666"

#Huawei 12d1

subsystem== "USB", sysfs{idvendor}== "12d1", mode= "0666"

#Kyocera 0482

subsystem== "USB", sysfs{idvendor}== "0482", mode= "0666"

#LG 1004

subsystem== "USB", sysfs{idvendor}== "1004", mode= "0666"

#Motorola 22b8

subsystem== "USB", sysfs{idvendor}== "22b8", mode= "0666"

#Nvidia 0955

subsystem== "USB", sysfs{idvendor}== "0955", mode= "0666"

#Pantech 10a9

subsystem== "USB", sysfs{idvendor}== "10a9", mode= "0666"

#Samsung 04e8

subsystem== "USB", sysfs{idvendor}== "04e8", mode= "0666"

#Sharp 04DD

subsystem== "USB", sysfs{idvendor}== "04DD", mode= "0666"

#Sony Ericsson 0FCE

subsystem== "USB", sysfs{idvendor}== "0fce", mode= "0666"

#ZTE 19D2

subsystem== "USB", sysfs{idvendor}== "19d2", mode= "0666"

"Remarks" about the above USB Vendor ID, different vendors may be different, refer to:

Company

USB Vendor ID

Acer

0502

ASUS

0b05

Dell

413c

Foxconn

0489

Fujitsu

04c5

Fujitsu Toshiba

04c5

Garmin-asus

091e

Google

18d1

Hisense

109b

Htc

0bb4

Huawei

12d1

K-touch

24e3

KT Tech

2116

Kyocera

0482

Lenovo

17ef

Lg

1004

Motorola

22b8

Mtk

0e8d

Nec

0409

Nook

2080

Nvidia

0955

Otgv

2257

Pantech

10a9

Pegatron

1d4d

Philips

0471

Pmc-sierra

04da

Qualcomm

05c6

SK Telesys

1f53

Samsung

04e8

Sharp

04dd

Sony

054c

Sony Ericsson

0fce

Teleepoch

2340

Toshiba

0930

ZTE

19d2

Other

If you have finished installing Eclipse, you will still be prompted what aapt:error while loadingshared libraries:libstdc++.so.6:cannot Open shared object File:no such Fileor Directory

The reason for this is that ubuntu,ia32_libs was discarded and resulted in Lib libraries without 32 bits. You need to download the library again.
sudo apt-get install lib32stdc++6

If executing the line above is not valid, you will need to do the following line

sudo apt-get install lib32z1

Android development environment built under Ubuntu 12.10

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.