System Environment: Ubuntu10.10 desktop environment: gnome2.32.0 Development Environment: Under shell: Install eclipse: sudoapt-getinstalleclipse install java6-jdk: sudoapt-getinsatllsun-java6-jdk. will automatically integrate install jre. Download and install AndroidSDKhttp: //
System Environment: Ubuntu 10.10
Desktop Environment: gnome2.32.0
Development Environment:
In shell:
Install eclipse: sudo apt-get install eclipse
Install java6-jdk: sudo apt-get insatll sun-java6-jdk. jre is automatically integrated.
Download and install Android SDK http://androidappdocs.appspot.com/sdk/index.html
Click package after linux (i386)
Decompress tar zxvf package in shell
Configuration and test:
Open eclipse, help --> install new sofetware; Work with and add. Click it.
In the pop-up window, enter e.g. Android Plugin and https://dl-ssl.google.com/android/eclipse/. then, select the developter tools in namespace. Next. Restart the plug-in file.
Specify the directory of the tools in the android SDK: In eclipse, window --> preferences --> android click on the edges. The setting window appears on the right, select the android SDK Location after decompression in the browse after SDK Location. That is, the location of the android-sdk-linux_x86 folder. Click OK.
In eclipse, select window and android SDK and AVD manager. On the left side of the dialog box that appears, select installed packages, update all, and then select the android platform you want. I only selected the 2.2 system, and then restarted eclipse. open this box, select virtual devices on installed packages, and click new on the first button on the right. In the displayed input box, create a name for the new virtual machine. On Target, select the Target platform version you want to develop. SD Card does not have much effect. Skin can be used by default. Click create AVD.
Test the new HelloWorld program:
File --> new --> android Project,
By default, nothing will change. input the following in one time:
Project name: helloworld
Aplication name: hello
Package name: com. chenlb. android
Create Activity: HelloWorld
Min SDK Version: 8
Click Finish
Under Search, there is a green button (a little bigger than nothing), click the triangle to select run events.
On the left. Double-click android application. On the right side, name: helloworld, and project: Enter helloworld. Then RUN. Be patient
Set environment variables.
Export PATH = "$ PATH:/directory, starting from the user's home directory /"
Source. bashrc
Successful!