Conclusion on how to establish the Android environment in Ubuntu9.04

Source: Internet
Author: User
This is my summary of some problems during the installation process: I am not very clear about some of these problems. My installation environment is Ubuntu9.04RCJDK for sun-java6-jdk, using the command sudoapt-getinstallsun-jdk6-jdk, There are instructions on some websites that the GNU Compiler that comes with the system is not usable. Eclipse3.4.21. the installation of ADT (androiddevelopment tools) fails. It prompts h

This is my summary of some problems during the installation process: I am not very clear about some of these problems.

My installation environment is Ubuntu 9.04 RC

JDK is a sun-java6-jdk, using the command sudo apt-get install sun-jdk6-jdk, There are instructions on some websites that the GNU Compiler that comes with the system is not available.
Eclipse 3.4.2

1. Installation of ADT (Android Developer Tools) fails. It prompts https://dl-ssl.google.com/android/eclipse/ that this URL cannot be resolved. I am working normally in Windows, and there is no way. Later, I thought of copying all the plug-ins of Eclispe in Windows to Linux, and then I found that they can be used. However, there are some warnings that the ADT version does not match. I ignored it, but no errors have been found.

2. Then I wrote a Helloworld program on the Internet. When running:

[16:39:19-HelloWorld] ----------------------------------
[16:39:19-HelloWorld] Android Launch!
[16:39:19-HelloWorld] adb is running normally.
[16:39:19-HelloWorld] Launching: com. shily. HelloWorld
[16:39:19-HelloWorld] Automatic Target Mode: launching new emulator.
[16:39:19-HelloWorld] Launching a new emulator.
[16:39:19-Emulator] ### WARNING: Cannot write user data file '/home/shily/. android/SDK-1.0/userdata-qemu.img': Permission denied

Then, I went to/home/shily /. android/SDK-1.0, found that this file is some, and the File Permission is no problem-rw -------, it is estimated that the first time to run the simulator, the file does not exist. So I went on to run it again, and there was no such problem. However, another problem arises:

[16:40:36-HelloWorld] ----------------------------------
[16:40:36-HelloWorld] Android Launch!
[16:40:36-HelloWorld] adb is running normally.
[16:40:36-HelloWorld] Launching: com. shily. HelloWorld
[16:40:36-HelloWorld] Automatic Target Mode: launching new emulator.
[16:40:36-HelloWorld] Launching a new emulator.
[16:40:37-Emulator] NAND: cocould not open file/opt/android-sdk-linux_x86-1.0_r1/tools/lib/images // system. img, Permission denied

Because the installation path is/opt, both Eclipse and Android SDK are stored in this directory. The reason for this access rejection may be the root decompressed SDK installation package, and other users do not have access permissions.

Run the sudo chmod-R o + r/opt/android-sdk-linux_x86-1.0_r1 command again.

OK.

Successful Information

[16:42:52-HelloWorld] ----------------------------------
[16:42:52-HelloWorld] Android Launch!
[16:42:52-HelloWorld] adb is running normally.
[16:42:52-HelloWorld] Launching: com. shily. HelloWorld
[16:42:52-HelloWorld] Automatic Target Mode: launching new emulator.
[16:42:52-HelloWorld] Launching a new emulator.
[16:42:56-Emulator] emulator: warning: opening audio input failed
[16:42:56-Emulator]
[16:42:56-HelloWorld] New emulator found: emulator-5554
[16:42:56-HelloWorld] Waiting for HOME ('android. process. acore') to be launched...
[5554 16:47:30-HelloWorld] HOME is up on device 'emulator-123456'
[5554 16:47:30-HelloWorld] Uploading HelloWorld.apk onto device 'emulator-100'
[16:47:30-HelloWorld] Installing HelloWorld.apk...
[16:48:10-HelloWorld] Success!
[16:48:11-HelloWorld] Starting activity com. shily. HelloWorld on device
[16:48:21-HelloWorld] ActivityManager: Starting: Intent {comp = {com. shily/com. shily. HelloWorld }}
[16:48:08-HelloWorld] WARNING: Unknown sdk api version!

It seems that this Emulator is implemented based on bochs, and it feels a little slow to run. It takes a long time to start it, but my machine is too old. P4 2.4 CPU, MB memory. However, after the startup, the computer speed is still high, unlike the CPU usage in Windows, which has been 100%. In addition to the memory of Eclipse, other jobs are almost impossible.

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.