First, confirm that your JDK has been installed properly and can be used. If the installation is normal, run the following command in Ubuntu:
JDK with normal Configuration ,:
Then go to the http://dl.google.com/android/android-sdk_r08-linux_86.tgz to download the development kit, whether i386 or amd64, all download this development kit, and decompress it to the main directory, note that the directory name can not contain Chinese.
Run $ android_sdk_home/tools/Android, as shown in, and update the development platform. The script supports a graphical interface, which can also be executed on the console.
After the development is complete, the download is completed, as shown in:
CD/etc/
Sudo gedit Profile
Append the paths of tools and platform-tools.
Path = $ path:/home/android_sdk/tools
OK
Qi
Eclipse: Eclipse 3.5 in Ubuntu is used in this article. Click Help-> install new
Software...-> Add..., enter "android developer toolkit" as the name, location
For "https://dl-ssl.google.com/android/eclipse ",.
Install all the plug-ins, as shown in.
After the installation is complete, restart eclipse, click window-> preferences-> Android, and select Android SDK location, as shown in.
Now, you can develop Android applications.ProgramNow, let's write a "Hello Android ".
First, start eclipse and create an android project, as shown in.
Click "Next" to fill in the relevant information.
Click "finish" and do not create an android test project. At this time, a "hello wolrd, mainactivity!" project is created !" Project.
Right-click the project and click "Run as-> Android Application". The following dialog box is displayed: Collection of business accounts
Click "yes" to start "android SDK and AVD manager". Currently, you can also start it through "window-> Android SDK and AVD manager", as shown in.
Click "new..." to create an AVD, save it, and enter relevant parameters, as shown in.
After entering the parameters, you can click Start... to start AVD, as shown in. IPhone 5
It takes a long time to start. Please wait. Many Android Developers are reluctant to close the started AVD, as shown in.
After the app is started, you can see the Android app, as shown in.