Configure the android development environment and download the 2.2 and 2.3 sdks in ubuntu10.10

Source: Internet
Author: User

This log is in http://hi.baidu.com/long_ri/blog/item/d9411a1007aa7a0f213f2e8e.html
Based on my actual situation. Of course, you can also refer to the official system requirements. Another problem is that due to the GF issue in China, it is estimated that some Android web pages cannot be accessed directly. How can this problem be solved, of course, F-wall software is used. If not, you can leave a message for me...

1. Install JDK 6
To install JDK 6, run the following command: Java-version to view the currently installed Java version.
In general, the installation is through the command: sudo apt-Get install sun-java6-jdk, but after I install Ubuntu, the default sources. no available resources can be found in the list to install JDK 6. Therefore, you need to add resources as follows:
1. Find sources. list file:/etc/APT/sources. list, open edit, add the following resources to the end of the file, you can also directly enter the command: sudo gedit/etc/APT/sources. list is edited using gedit.
Deb http://tw.archive.ubuntu.com/ubuntu/
Jaunty main restricted universe multiverse
Deb-Src http://tw.archive.ubuntu.com/ubuntu/
Jaunty main restricted universe multiverse
Save the settings.
2. Run sudo apt-Get update to update the list of available resources.
3
Update complete, run the command: sudo apt-Get install sun-java6-jdk
To install JDK 6, the corresponding software package will be downloaded first, and the installation will start after the download is complete. This is the time to bring up a license confirmation interface, which really makes me a little effort, it may be because I am too long.
I have never used a Linux system. This license confirmation page is rolled to the bottom of the page for confirmation. However, no matter how I get it, I cannot select and confirm it, so I cannot continue to install it. Finally, Baidu ...... The original
Because it is the tab key, you can use the tab key to move the focus to "OK", and then press enter to continue the installation;
4. After the installation is complete, re-open sources. List and comment out the newly added resource link. // This step does not seem necessary.

5. Run the sudo apt-Get update command to update the following resource list; // This step does not seem necessary.

6. Set the Java environment variable, export java_home =/usr/lib/JVM/Java-6-sun, here/usr/lib/JVM/Java-6-Sun is the path for actually installing Java;
7. Configure the android Java environment variable: Export android_java_home = $ java_home
2. Install eclipse
To
In the Ubuntu Software Center, search for eclipse and install it. In this way, the installed version of eclipse is 3.5.2 (Android is actually required to be 3.5.
Party A: Eclipse 3.4 (Ganymede) or 3.5 (Galileo)
), It is enough for the current Android development. It is not good if it is too new. After installing eclipse, you need to install eclipse-PVDF and
Eclispe-jdt plug-ins. If not, Android is installed later.
When the ADT plug-in is installed, an error occurs. Because the two plug-ins are not installed, an error occurs during ADT installation;
3. Install the android SDK
1
Download android
Http://developer.android.com/sdk:
// Download the androidappdocs.appspot.com/sdk/index.html file. Of course, you must download the file from linux;
2. decompress the downloaded SDK;
3. Set the environment variable and use the "gedit ~" command ~ /. Bashrc, open. bashrc, and add the following statement: Export path =$ {path
}
:/Home/longri/Android/android-sdk-linux_86/tools, here/home/longri/Android/android-sdk-linux_86 is the path to decompress the SDK; (Note:
: Here, path does not need parentheses. I add brackets and errors here. As a result, many terminal commands cannot be used after the system is started. The repair method is actually very simple: $ Path = $ path: /...... add the relevant bin directory)
4. Install ADT
Dozen
Open eclipse, and then go to help --> install new software
, Add ADT installation link: http://dl-ssl.google.com/Android/eclipse/
, And then install. If you do not install the PDE and jdt plug-ins when installing eclipse, an error will occur in the ADT structure. The PDE and jdt are in the Ubuntu Software Center.
You can find and install it;
5. Set the android SDK home
1. Set adnroid adk home
Select window --> preferences, select the android tag, and click "Browse... "Item, select the path of the android SDK directory
Select the android SDK directory (/home/longri/Android/android-sdk-linux_86)
2. download and install the SDK online
Select window --> Android SDK and AVD manager;
Select
Choose Android SDK tools, revision7, and then select update all. This will download all sdks.
API, you can go to avilabe packages
To download and install the SDK. Because it is online download, the speed is relatively full. If the network speed is acceptable, you can choose to install it all (recommended );
In this way, the android development environment is complete and you can start learning the adroid application ......

If you have any questions, refer to the official documentation...

 

 

Android2.2, 2.3sdk download

Searching for the android SDK on the internet is mostly an official download link. Unfortunately, the Android Developers column is broken down, so the next Android SDK is still very difficult. Some websites may occasionally download the android SDK, but the version is incomplete and you may not find the desired version.

I spent a lot of time looking for the android SDK 2.3 for linux version. It seems that I still have to go through the wall in the future... Let's talk about how to download the android SDK we want .... :

Download the "start package" of Android 2.2 ":

Android-sdk_r06-windows.zip for Windows
: Link: http://dl.google.com/android/android-sdk_r06-windows.zip

Mac: android-sdk_r06-mac_86.zip
: Link http://dl.google.com/android/android-sdk_r06-mac_86.zip

Linux edition android-sdk_r06-linux_86.tgz
: Link http://dl.google.com/android/android-sdk_r06-linux_86.tgz

This is the link I found on a website. Based on the above, we can easily find some download rules .. We only need to change the version to download the new SDK ..

For example, if you want to use Android SDK 2.3, the modified link is as follows:

Android-sdk_r08-windows.zip for Windows
: Link: http://dl.google.com/android/android-sdk_r08-windows.zip

Mac: android-sdk_r08-mac_86.zip
: Link http://dl.google.com/android/android-sdk_r08-mac_86.zip

Linux edition android-sdk_r08-linux_86.tgz
: Link http://dl.google.com/android/android-sdk_r08-linux_86.tgz

Related Article

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.