AVD not booting after Android Studio update

六眼飞鱼酱① 提交于 2019-11-30 22:09:09

问题


My AVDs are no longer booting after I installed a 921MB update released these days. I don't exactly remember the entity of the update (maybe API/SDK revision), I'm using Android Studio 2.3 build AI-162.4069837 with API 25 revision 3 (I think this last thing is the actual update) on Debian.

When I start up the AVD it just keeps a black screen and never completes booting. The log shows this error just after it starts booting the AVD:

1292-1328/? E/vold: Failed to chmod /data/system_ce/0: No such file or directory
1292-1328/? E/vold: Failed to chmod /data/misc_ce/0: No such file or directory
1292-1328/? E/vold: Failed to chmod /data/media/0: No such file or directory

It's like there is no file system initalized.

After that I keep getting a loop of errors, which I pasted at https://pastebin.com/cbk9T8KR.

Anybody else having troubles? Any ideas on how to get the VM working again?


回答1:


I eventually found a temporary solution hoping they'll fix the bug. You should open config.ini inside .android/AVD/[AVD name]/ and set

hw.gpu.enabled=yes
hw.gpu.mode=swiftshader

and the VM got back to work properly.

Source: https://issuetracker.google.com/issues/36905888




回答2:


for all Windows Users the config.ini is in

C:\Users\yourname.android\avd\yourdevicename.avd/config.ini

and the entries

hw.gpu.enabled=yes hw.gpu.mode=auto

exist already. But the change of hw.gpu.mode to "swiftshader" works perfectly.



来源:https://stackoverflow.com/questions/44812321/avd-not-booting-after-android-studio-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!