Ubuntu under the ADB installation

Source: Internet
Author: User

1.ADB Description:

ADB full name Android Debug Bridge, Android debugging Bridges. It is a tool in the Android SDK that allows you to directly manipulate the Android emulator or the real andriod device.

ADB is also a client-server program, where the client is the computer you use to operate, and the server side is your Android device.

2.ADB Command main functions:

(1) Install/uninstall APK program

(2) Transferring files between the computer and the Android device

(3) Shell running Android device (command line)

(4) Port mapping for Management simulator or Android device

3.ADB installation configuration steps:

Native environment: Kubuntu 14.04LTS 64-bit

(1) Install the Android SDK:

: Http://developer.android.com/sdk/index.html recommends the direct download of ADT Bundle, which integrates Eclipse and SDK.  

After downloading, unzip to the current directory, and then move the extracted files to "/root or/usr/local".

Unzip adt-bundle-linux-x86_64-20140321. Zip sudo mv adt-bundle-linux-x86_64-20140321 /usr/local

We can see that the adt-bundle-linux-x86_64-20140321 directory contains the Eclipse and SDK folders, which are then configured.

(2) Locate the Android SDK directory, add global variables, set the tools directory to run the environment to the SDK;

Root privileges, added in/etc/profile (if added in ~/.BASHRC under current user permissions)

Export android_home=/usr/local/adt-bundle-linux-x86_64-20140321/sdkexport PATH= $PATH: ${android _home}/platform-tools:${android_home}/tools:${android_home}/build-tools/android-4.4. 2

After the configuration is complete, you need to use the source command to make the configuration file effective.


(3) See if ADB can be successfully executed.

There will be a small problem, the system will be prompted to find the ADB, here need to install ANDROID-TOOLS-ADB

sudo Install android-tools-adb

After the installation is complete, enter ADB at the terminal to see the following information

(4) Using eclipse:

Since eclipse has been encapsulated in ADT, we can launch eclipse into the/usr/local/adt-bundle-linux-x86_64-20140321/eclipse directory,

You will be prompted to install Eclipse-platform. When you are finished, you can open eclipse.

sudo Install Eclipse-platform

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.