上次帮朋友解决安卓模拟器的问题,希望对大家有所帮助。
首先,在朋友的虚拟机上运行发现报错了一大堆信息,算了一下总共有15行。
点开右下角的Event Log可以看到报错日志。
报错内容如下:
16:54 Emulator: emulator: ERROR: Could not load OpenGLES emulation library [libOpenglRender]: Could not load DLL!
16:54 Emulator: emulator: ERROR: Retrying in program directory/lib64…
16:54 Emulator: emulator: ERROR: Could not load OpenGLES emulation library [G:\Android\SDK\tools\qemu\windows-x86_64\lib64\libOpenglRender]: Could not load DLL! (2nd try)
16:54 Emulator: dsound: Could not initialize DirectSoundCapture
16:54 Emulator: dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID
16:54 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
16:54 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
16:54 Emulator: audio: Failed to create voice `goldfish_audio_in’
16:54 Emulator: G:\Android\SDK\tools\qemu\windows-x86_64\qemu-system-x86_64.exe: warning: opening audio input failed
16:54 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
16:54 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
16:54 Emulator: audio: Failed to create voice `adc’
16:54 Emulator: emulator: ERROR: OpenGLES emulation failed to initialize. Please consider the following troubleshooting steps:
16:54 Emulator: Process finished with exit code -1073741819 (0xC0000005)
随机复制几个代码报错内容到论坛,通过对关键字的分析,(dsound)(voice)(OpenGLES)
发现报错发现问题出现在两个地方
一个是缺少对应的文件(或者说文件没有复制到对应的地方)
第二个是喇叭权限没给足,于是按照论坛的同行的解决方案去做,结果发现模拟器运行起来了
下面是论坛朋友的链接,希望本人解决问题的方法对大家有帮助。
https://blog.csdn.net/weixin_34092455/article/details/86437060
https://blog.csdn.net/wangctes/article/details/88530774
重新启动的时候发现自己运行起来的机型没了,于是创建了新机,但是又报了缺少文件的错。
这个时候本人建议重新开机,当时可能是朋友开了其他虚拟机,导致创建的机型没有找到,后来关闭虚拟机后(应该是重新启动了)就又找到对应的机型了。