In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to build an Android development environment in Ubuntu 11.04. the article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
# 1. Install the required software packages for Eclipse and Android SDK/PhoneGap:
Open the terminal and enter the following command to complete the process described in the title:
Sudo apt-get install openjdk-6-jdk eclipse ruby rubygems ruby-dev libnokogiri-ruby git ant libxml2 libxml2-dev libxslt1-dev
For 64-bit, you also need to install the following two packages:
Sudo apt-get install lib32stdc++6 ia32-libs
# 2. Install Android SDK
Open a web browser, enter the address http://developer.android.com/sdk/index.html, and download the Android SDK version of the desired platform (Win,Mac,Linux). We can choose Linux (i386) (for both 32-bit and 64-bit platforms).
Alternatively, download and extract the package with the following command:
Cd ~ wget http://dl.google.com/android/android-sdk_r11-linux_x86.tgztar xvfz android-sdk_r11-linux_x86.tgz
From the above command, we can get the file directory android-sdk-linux_x86, and now we need to add the $HOME/android-sdk-linux_x86/tools directory and the $HOME/android-sdk-linux_x86/platform-tools directory to the PATH path variable:
Open the ~ / .profile file
Gedit / .profile
Add the following line to the end of the file:
[...] PATH= "$HOME/android-sdk-linux_x86/tools:$HOME/android-sdk-linux_x86/platform-tools:$PATH"
Then, run the following command to take effect the above changes:
Export PATH= "$HOME/android-sdk-linux_x86/tools:$HOME/android-sdk-linux_x86/platform-tools:$PATH"
Now, start Android SDK:
Android
The following figure is shown in Android SDK:
Next, select "Available packages" on the left, then select "Android Repository" in the right column, select all the packages in the "Android Repository" group, and click "install selected packages". Next, select "accept" and continue to complete the installation.
If prompted that "ADB needs to be restarted", we select "Yes" to restart ADB.
When the download is finished, click "close" to close the dialog box.
# 3. Migrate Android SDK to Eclipse
If you use Eclipse to create Android applications instead of on the command line, we need to port Android SDK to Eclipse.
First, start Eclipse from "Applications > Programming > Eclipse".
This is how to build an Android development environment in Ubuntu 11.04. if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.