关于Android Studio关闭模拟器死机解决方案的尝试
关于Android Studio关闭模拟器死机解决方案的尝试
背景介绍
本人是Android Studio新手,在从版本3.3.1 (February 2019)升级到3.3.2 (March 2019)(考虑到版本问题)时运行模拟器后模拟器关机时出现笔记本电脑(12GRAM+Geforce950m)死机的情况。
尝试
一、切换到独显
二、android studio的系统设置问题
解决步骤:
(1)File->SettingAppearance&Behavior -> System Settings -> Updates
(2)去掉Automatically check update for的选项,另一个也不要打勾
(3)去掉用不到的Plugins里面有插件,,如Git Integration、GitHub和Google Cloud以及SDK Updater
(4)点击应用、OK
三、我的解决方案(有关Cold boot/Quick boot功能)
在新建模拟器时选择Quick boot。原模拟器配置(Quick boot)
Name: Nexus_S_API_22
CPU/ABI: Google APIs Intel Atom (x86)
Target: google_apis [Google APIs] (API level 22)
SD Card: 512M
hw.device.name: Nexus S
image.androidVersion.api: 22
hw.camera.front: emulated
avd.ini.displayname: Nexus S API 22
新模拟器配置(Cold boot)
Name: Pixel_2_XL_API_28
CPU/ABI: Google APIs Intel Atom (x86)
Target: google_apis [Google APIs] (API level 28)
Skin: pixel_2_xl
SD Card: 512M
hw.device.name: pixel_2_xl
hw.lcd.width: 1440
image.androidVersion.api: 28
avd.ini.displayname: Pixel 2 XL API 28
hw.ramSize: 1536
hw.cpu.ncore: 2
AvdId: Pixel_2_XL_API_28
disk.dataPartition.size: 800M
虽然新配置运行时卡顿,暂且归结于电脑配置问题,但关闭模拟器正常。
后记
本篇文章仅提供参考。
参考
【1】https://blog.****.net/hx7013/article/details/77184594
【2】https://blog.****.net/u014043113/article/details/78354302
【3】https://blog.****.net/gdouwenbiwei/article/details/49251979android