The optimal sequence for building an Android development environment in Linux

Source: Internet
Author: User
Tags android sdk manager

Let's take a look at how to configure the Android4.0.3 development environment in Linux (Ubuntu 11.10 ).

If you install AndroidSDK first, go to the decompressed path and run the android api version of./android upgrade under the tools directory. After eclipse is installed and adt is installed, the path will not be identified when you add it. Therefore, the best installation sequence is:

1. Install jdk

2. Install eclipse

3. install the adt plug-in. It is best to install the plug-in online (for online installation, help -- install new software, and then add the URL:

Https://dl-ssl.google.com/android/eclipse/if httpsis changed to http, it remains unchanged)

[Note: in fact, you do not need to install it online. After downloading it, copy the compressed file to the eclipse folder and decompress it directly by unzip xxx.zip, after decompression, the plug-in folder will automatically overwrite and install. It is easier than online installation.

In addition, the original ADT18.0.0 version is no longer available, the latest version is 22.0.1, download link: http://developer.android.com/sdk/installing/installing-adt.html]

4. Run eclipse and click Android SDK manager in the window to download the android api.

In the pop-up sdk manager dialog box, install the three options in the tools Folder. I just did not install the last option for the first time, probably build tools. As a result, the newly created android program says that R cannot be found.

5. Install CDT (if you want to create a c ++ Project)

6. Click help -- install new software in eclipse to install NDK online (if you need to compile local C ++ code into a library)

The following message is displayed: all operations are performed after su as the root user. If you log on as a non-root user and create the eclipse desktop startup icon as described above, trying to add the root permission to download the android SDK is often unsuccessful.

This is also a very tangled problem for me. Every time I open eclipse, cd is used .. /.. /Enter the corresponding directory, and then./eclipse. Do you have a solution ??? Although icons have been created in the previous article, do not create icons before you create an android development environment. That is, you must build an android development environment with the same permissions.

If you create an icon and start eclipse on the desktop at this time, you will find that the adt is not installed, and there is no android sdk, that is, the contents installed by the root user are gone, grandma's! The problem of egg pain will be solved later!

Note: google's latest ADT bundle contains the eclipse adt sdk. Install it directly. It is worth mentioning that now it is easier to build an android development environment, google provides an ADT bundle thing, link in this: http://developer.android.com/sdk/index.html

With a single download, the ADT Bundleincludes everything you need to begin developing apps:

Eclipse + ADT plugin

Android SDK Tools

Android Platform-tools

The latest Android platform

The latest Android system image for the emulator

That is to say, an ADT Bundle contains eclipse, ADT, Android SDk... and so on, so you can download this package and decompress it directly, even with eclispe. Just install JDK + adt bundle.

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.