相关疑难解决方法(0)

运行Android应用程序时出错 - 无法初始化OpenglES仿真,请使用'-gpu off'禁用它

我是android编程的新手.我指的是google开发者网站,以学习android.当我运行应用程序UI时,我遇到了这些错误.

 H:\SDK\tools\emulator.exe -avd Nexus_5_API_21_x86 -netspeed full -netdelay none
 emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to   disable it.
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 getGLES1ExtensionString: Could not find GLES 1.x config!
 Failed to obtain GLES 1.x extensions string!
 Could not initialize emulated framebuffer
Run Code Online (Sandbox Code Playgroud)

我正在使用android studio.

android android-virtual-device android-layout android-fragments android-activity

36
推荐指数
3
解决办法
9万
查看次数

SO_REUSEPORT 在编译系统上不可用以在 Ubuntu 上运行 android 模拟器

我试图在 Ubuntu 20.04 上安装没有 Andriod studio 的 SDK 和 Emulator。但是被这个错误卡住了。

E0520 11:06:29.866803544    5261 socket_utils_common_posix.cc:201] check for SO_REUSEPORT: {"created":"@1589952989.866791260","description":"SO_REUSEPORT unavailable on compiling system","file":"/mnt/tmpfs/src/android/emu-master-dev/external/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":169}
checkValid: hw configs not eq
Run Code Online (Sandbox Code Playgroud)

sockets ubuntu dart android-studio flutter

12
推荐指数
1
解决办法
3495
查看次数