AVD not booting after Android Studio update

2019-02-16 02:11发布

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?

2条回答
该账号已被封号
2楼-- · 2019-02-16 02:49

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.

查看更多
看我几分像从前
3楼-- · 2019-02-16 02:50

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

查看更多
登录 后发表回答