安卓模拟器速度慢的解决方法

1.使用UBUNTU

以下是我测试helloWorld的结果,均是在打开boot animation的情况下

我机器的配置是 P6100 2G DDR3

WINDOWS XP SP2

[2010-10-26 21:35:28 - HelloAndroid] ------------------------------ [2010-10-26 21:35:28 - HelloAndroid] Android Launch! [2010-10-26 21:35:28 - HelloAndroid] adb is running normally. [2010-10-26 21:35:28 - HelloAndroid] Performing com.silenceburn.helloandroid.HelloAndroid activity launch [2010-10-26 21:35:28 - HelloAndroid] Automatic Target Mode: Preferred AVD 'myAVD' is not available. Launching new emulator. [2010-10-26 21:35:28 - HelloAndroid] Launching a new emulator with Virtual Device 'myAVD' [2010-10-26 21:35:34 - HelloAndroid] New emulator found: emulator-5554 [2010-10-26 21:35:34 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched... [2010-10-26 21:36:10 - HelloAndroid] WARNING: Application does not specify an API level requirement! [2010-10-26 21:36:10 - HelloAndroid] Device API version is 3 (Android 1.5) [2010-10-26 21:36:10 - HelloAndroid] HOME is up on device 'emulator-5554' [2010-10-26 21:36:10 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554' [2010-10-26 21:36:10 - HelloAndroid] Installing HelloAndroid.apk... [2010-10-26 21:36:28 - HelloAndroid] Success! [2010-10-26 21:36:28 - HelloAndroid] Starting activity com.silenceburn.helloandroid.HelloAndroid on device emulator-5554 [2010-10-26 21:36:31 - HelloAndroid] ActivityManager: Starting: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} comp={com.silenceburn.helloandroid/com.silenceburn.helloandroid.HelloAndroid} }

耗时 63s


UBUNTU 10.4

[2010-10-26 16:23:21 - myUbuAndroid] ------------------------------ [2010-10-26 16:23:21 - myUbuAndroid] Android Launch! [2010-10-26 16:23:21 - myUbuAndroid] adb is running normally. [2010-10-26 16:23:21 - myUbuAndroid] Performing com.silenceburn.ubu.HelloUbuAndroid activity launch [2010-10-26 16:23:21 - myUbuAndroid] Automatic Target Mode: Preferred AVD 'myUbuAVD' is not available. Launching new emulator. [2010-10-26 16:23:21 - myUbuAndroid] Launching a new emulator with Virtual Device 'myUbuAVD' [2010-10-26 16:23:21 - myUbuAndroid] New emulator found: emulator-5554 [2010-10-26 16:23:21 - myUbuAndroid] Waiting for HOME ('android.process.acore') to be launched... [2010-10-26 16:23:22 - Emulator] emulator: emulator window was out of view and was recentred [2010-10-26 16:23:22 - Emulator] [2010-10-26 16:23:45 - myUbuAndroid] WARNING: Application does not specify an API level requirement! [2010-10-26 16:23:45 - myUbuAndroid] Device API version is 3 (Android 1.5) [2010-10-26 16:23:45 - myUbuAndroid] HOME is up on device 'emulator-5554' [2010-10-26 16:23:45 - myUbuAndroid] Uploading myUbuAndroid.apk onto device 'emulator-5554' [2010-10-26 16:23:45 - myUbuAndroid] Installing myUbuAndroid.apk... [2010-10-26 16:24:05 - myUbuAndroid] Success! [2010-10-26 16:24:06 - myUbuAndroid] Starting activity com.silenceburn.ubu.HelloUbuAndroid on device emulator-5554 [2010-10-26 16:24:08 - myUbuAndroid] ActivityManager: Starting: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} comp={com.silenceburn.ubu/com.silenceburn.ubu.HelloUbuAndroid} }

耗时 47s

2.关闭BOOT ANIMATION 开机动画

就是模拟器启动时立体效果的一闪一闪的android图标,可显著提高启动速度,约可提高5-10s

具体选项在

中的 Disable Boot Animation,选中即可停止开机动画效果。

3.只启动一次AVD,不要关闭

只需要启动一次AVD,不要关闭,然后修改代码,再次点击RUN时,

模拟器会自动先卸载上次的apk,然后安装新代码的apk,反映出最新的修改效果。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值