Build a linux android Environment

Source: Internet
Author: User

Configuration of the Android environment in Linux (centos.

Building an Android environment in Linux has been running Linux for the past few days. Seeing a popular android environment recently, I tried to build an Android environment in Linux.
Centos is always used as the development environment.
The configuration for the first time has been around for a whole day, and many problems have occurred. At the same time, there are some ways to solve the problem. It can be used as a reference. As a newbie, if there is any leakage, please kindly advise.
-: Install JDK
If the built-in JDK of Centos is not used, you can reinstall it and download the latest JAVA version.
Click DownLoad, select Linux in Platform, and then Continue.
Select the desired installation package, I chose jdk-6u21-linux-i586-rpm.bin"
After the download is complete, add the permission
1 # chmod + x jdk-6u21-linux-i586-rpm.bin
2 and then execute
3 #./jdk-6u1-linux-i586-rpm.bin
If some options may appear during the process, direct yes
View the current jdk version after installation.
1 # java-version
After JDK is installed, install the IDE. I chose eclipse.
2. Install eclipse
Eclipse Classic 3.6.2 is used here.
At the same time, the Android folder is created in the root folder, and the related IDE and sdk are saved here.
Eclipse is a green version, which can be used after decompression. After decompression, open Eclipse to set the workspace.
3. Install ADT (this step is prone to problems)
I have installed the javasadt-10.0.1.zip Android development tool.
1. Start Eclipse and go to Help> Install New Software.
2. In the Available Software dialog box, click Add ....
3. In the Add Site dialog box, enter a Name (for example, "Android") in the Name field and enter the https://dl-ssl.google.com/android/eclipse/ in the "Location" Field
4. Note: If you have any questions, you can change https to http. Click OK.
5. Return to the Available Software interface and you should see "Developer Tools ". Select checkbox. Click Next, and then click Finish.
6. Restart Eclipse.
Note:
If you have problems downloading this step, you can use offline installation, download the ADT file: http://dl.google.com/android/ADT-10.0.1.zip
Decompress the package to the Android tool folder we created and locate it in the same way. See step 3.
If the plug-in cannot be installed during installation, install Google Plugin for Eclipse 3.6.
The installation method is very simple, to help the above Location address into http://dl.google.com/eclipse/plugin/3.6
For detailed installation method, see. http://code.google.com/intl/zh-CN/eclipse/docs/install-eclipse-3.6.html
4. Download the SDK.
For Linux. http://dl-ssl.google.com/android/repository/android-2.2_r01-linux.zip
You need to know that this zip package is not a complete package. The Android software package adopts the form of "components". You can select components as needed.
The preceding zip file contains only one component management tool and one basic tool component.
After the download is complete, decompress the package to our Andoid folder.
5. Configure the SDK.
1. Select Eclipse Window> Preferences...
2. Select Android
3. Click Browse... to locate the Android SDK directory. For example, my directory:/home/Android/android-sdk-linux_86
4. Click Apply, and then OK. (An error will be prompted, and an error will certainly occur. Because the sdk has not been downloaded yet .)
6. Follow the new SDK
1. Run Eclipse and select Window> Android SDK and AVD Manager.
2. Select Installed Packages in the left-side navigation pane.
3. Click Update All.
The Choose Packages to Install dialog appears. Select Accept All and click Install
About 2 GB capacity. If you want to download all of them, take a nap or do something else (you can also download them as needed ).
After the download is complete, restart Eclipse to mail Android Project.
Note: In this case, you can compile a Project by selecting the simulator. If glibc2.7 cannot be found during compilation
See the following link for http://blog.sina.com.cn/s/blog_64a2c65a0100hl98.html upgrade 2.7.
Finally compiled successfully. attached several tests

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.