Ubuntu 9.04下Android环境建立问题总结
2010-07-20 13:36:00 来源:WEB开发网因为我安装的路径是/opt下,Eclipse和Android SDK都放在这个目录下。这次访问拒绝的原因可能是因为root解压的SDK安装包,其它用户没有访问权限。
使用命令sudo chmod -R o+r /opt/android-sdk-linux_x86-1.0_r1 然后再次运行。
OK,成功了。
成功的信息
ERP基础知识
[2009-04-18 16:42:52 - HelloWorld] ------------------------------
[2009-04-18 16:42:52 - HelloWorld] Android Launch!
[2009-04-18 16:42:52 - HelloWorld] adb is running normally.
[2009-04-18 16:42:52 - HelloWorld] Launching: com.shily.HelloWorld
[2009-04-18 16:42:52 - HelloWorld] Automatic Target Mode: launching new emulator.
[2009-04-18 16:42:52 - HelloWorld] Launching a new emulator.
[2009-04-18 16:42:56 - Emulator] emulator: warning: opening audio input failed
[2009-04-18 16:42:56 - Emulator]
[2009-04-18 16:42:56 - HelloWorld] New emulator found: emulator-5554
[2009-04-18 16:42:56 - HelloWorld] Waiting for HOME ("android.process.acore") to be launched...
[2009-04-18 16:47:30 - HelloWorld] HOME is up on device "emulator-5554"
[2009-04-18 16:47:30 - HelloWorld] Uploading HelloWorld.apk onto device "emulator-5554"
[2009-04-18 16:47:30 - HelloWorld] Installing HelloWorld.apk...
[2009-04-18 16:48:10 - HelloWorld] Success!
[2009-04-18 16:48:11 - HelloWorld] Starting activity com.shily.HelloWorld on device
[2009-04-18 16:48:21 - HelloWorld] ActivityManager: Starting: Intent { comp={com.shily/com.shily.HelloWorld} }
[2009-04-18 16:48:08 - HelloWorld] WARNING: Unknown SDK API version!
好像这个Emulator是基于bochs实现的,感觉运行上有点慢,启动一次,要老半天,可以我的机器太老了。P4 2.4的CPU,双512M内存。不过,启动起来以后,电脑的速度还成,不像在Windows下CPU占用一直100%,加上Eclipse这个内存大户,其它的工作几乎做不了了。