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

 

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

 

具体选项在

 

安卓模拟器速度慢的解决方法_第1张图片 

 

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

 

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

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

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

 

 

你可能感兴趣的:(android,api,application,animation,action,2010)