【问题标题】:Error on launching AVD in Android Studio, ERROR says eglMakeCurrent failed在 Android Studio 中启动 AVD 时出错,ERROR 说 eglMakeCurrent 失败
【发布时间】:2015-07-31 20:54:02
【问题描述】:
emulator: device fd:668
HAX is working and emulator runs in fast virt mode
creating window 0 0 240 400
emulator: emulator window was out of view and was recentered
eglMakeCurrent failed

什么是“eglMakeCurrent 失败”?

尝试过
设置 window.x = 0 window.y = 0 ...
但是 window.x=322 不断回来...我尝试更改分辨率...加上
甚至无法移动模拟器...尝试 ALT+SPACE 和“移动”...但无法移动
it..虽然模拟器可以启动了——

【问题讨论】:

标签: android android-studio


【解决方案1】:

AVD Manager 中,将 Boot option 更改为 Cold Boot。然后启动虚拟设备。之后,您可以将其改回快速启动。如果您修改了某些内容并且更改没有正确应用,通常会发生这种情况。

Explicative Image(I hope)

【讨论】:

  • 您也可以使用操作部分中的向下箭头和Cold Boot Now。它解决了我的问题。
  • 如果你不使用 UI 命令是 emulator -avd MyEmulatorAPI22 -no-snapshot-load
【解决方案2】:

AVD Manager 中,将 Emulated Performance - Graphics 更改为 Software - GLES 2.0

我在使用不同显卡设置多台显示器后遇到了这个问题。

【讨论】:

    【解决方案3】:

    请尝试:

    adb kill-server
    adb start-server
    
    emulator -avd <avd_name> -no-snapshot-load
    

    如果您正确设置了环境变量和路径,它可以 100% 工作。

    【讨论】:

      猜你喜欢
      • 2017-05-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-26
      • 1970-01-01
      • 2023-04-03
      相关资源
      最近更新 更多