android - "ERROR: OpenGLES initialization failed!"在 CentOS 与 android SDK

标签 android

当我运行时: /usr/local/android-sdk-linux/tools/emulator -avd tst

我得到错误:

Failed to open lib64EGL_translator
Failed to init_egl_dispatch
emulator: ERROR: OpenGLES initialization failed!
emulator: ERROR: OpenGLES emulation library could not be initialized!
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
emulator: emulator window was out of view and was recentered

我已按照此处的步骤操作:http://www.redips.net/android/emulator-fedora-linux/

我也试过使用命令 emulator-arm 和 emulator64-arm

我试过的另一件事是

export LD_LIBRARY_PATH=/usr/local/android-sdk-linux/tools/lib:$LD_LIBRARY_PATH

另一个尝试是使用参数:

-no-audio -gpu off

我使用全新安装的 CentOS 6.6 并运行了 yum update。我正在使用安卓 SDK:http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz

我运行了/usr/local/android-sdk-linux/tools/android 并安装了 Android 5.0 api+arm。我再次尝试使用 Android 4.4 AVM。

我已经尝试了所有我能找到的建议。还有其他建议吗?

最佳答案

在从命令行运行模拟器之前,将 lib64 目录添加到 LD_LIBRARY_PATH,例如:

$ export LD_LIBRARY_PATH=/usr/local/android-sdk-linux/tools/lib64:$LD_LIBRARY_PATH

$ export LD_LIBRARY_PATH=$HOME/Android/Sdk/tools/lib64:$LD_LIBRARY_PATH

依赖SDK安装路径

关于android - "ERROR: OpenGLES initialization failed!"在 CentOS 与 android SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27210337/

相关文章:

android - 如何更快地接收通知,比如whatsapp

android - 如何在recyclerview gridlayout中使用notifydatasetchanged

c# - 在 C#、ANDROID 和 IPHONE 之间加密数据

java - EditText 中的 ClickableSpan 到文本末尾调用 click() 到行尾

android - 从 ViewPager 中的 Fragments 调用 Adapter

android - Flutter Series <T,D>构造函数

java - 从共享首选项将数组传递到 ArrayAdapter。安卓

android - OpenCV4android - 使用与 Weka 的 SMO 相同的参数配置 SVM 的训练

android - 我可以使用 firefox 扩展中的 android intent 吗?

android - 一些应用程序如何能够在 android webview 中成功执行谷歌登录?