Install and configure jdk + eclipse + android sdk, ubuntu android

Source: Internet
Author: User

Install and configure jdk + eclipse + android sdk, ubuntu android

Five steps in total:

1. Install jdk

2. Install eclipse

3. InstallationAndroid-sdk

4. Install adb

5. Install ADT in eclipse

1. Install jdk

It has been installed before.

sudo apt-get install sun-java8-jdk

The advantage of using command line installation is that you do not need to configure environment variables.

 

2. Install eclipse

Http://www.eclipse.org/downloads/, select Linux 32bit

Double-click eclipse to start the eclipse program.

At this time, eclipse installation is complete.

3. InstallationAndroid-sdk

Official http://developer.android.com/sdk/index.html

Select android-sdk_r24.3.4-linux.tgz

After the download is complete, double-click it to open it. The decompression method is the same as the previous jdk decompression method.

Add at the end of/root/. bashrc
export ANDROID_HOME="/home/work/software/android-sdk-linux"export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools"

In this case, the sdk is equivalent to a software manager. If you want to develop android, you must have at least one android version. In this case, it is empty. then configure the ADT plug-in eclipse.

You can use the command line to start android:

#android

 

4. Install adb(The operation may be a bit repetitive with step 3, but for clarity, the viewer can ignore this step)

1. Download android-sdk

2. decompress the package and put it in a directory. Set the environment variables in ~ /. Bash_profile or ~ /. Bashrc file,

I put it in bashrc and add a row.

Export PATH =$ {PATH }:< storage directory>/tools

3. Start android, download android sdk tools | android sdk platform tools | android sdk build-tools | android support repository | android support library.

Chmod 777 <storage directory>/tools/adb # This step may be required

3. Connect to the mobile phone and enter the tools directory through the terminal. Run the command adb kill-server for the first time.

4. Now you can use adb. The adb tool is very useful. You can debug your android phone. The following are some common commands that may be used to summarize in detail.

5. adb devices

6. adb root

7. adb shell

5. Install ADT in eclipse

The official website provides two installation methods, refer (I had been here for a long time. During the installation, I was always prompted about the lack of things and so on. The next day I was able to install it again, which is inexplicable, hope that the installation is successful at one time !)

Open eclipse ---> help ---> Install New Software

Click Add next to the input box after work.

Enter ADT Plugin after Name (you can Name it as needed)

Enter: https://dl-ssl.google.com/android/eclipse/ after Location

Click OK. As prompted, install eclipse step by step. You will be prompted to restart eclipse and Select restart now. Then the configuration is OK.

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.