android – Web视图没有合适的EGL配置发现错误

前端之家收集整理的这篇文章主要介绍了android – Web视图没有合适的EGL配置发现错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我是 Android的新手,我正在尝试实现一个WebView示例.在我的应用程序中,WebView重定向到一个网页.但是在Logcat下面这是它显示错误.我试图解决它,但我不能.请帮我找.如果我的问题困扰你,我真的很抱歉
这是错误
01-02 22:46:42.764: E/chromium(1223): [ERROR:gl_surface_egl.cc(153)] No suitable EGL configs found.
01-02 22:46:42.764: E/chromium(1223): [ERROR:gl_surface_egl.cc(620)] GLSurfaceEGL::InitializeOneOff Failed.
01-02 22:46:42.784: E/chromium(1223): [ERROR:gl_surface_egl.cc(153)] No suitable EGL configs found.
01-02 22:46:42.784: E/chromium(1223): [ERROR:gl_surface_egl.cc(620)] GLSurfaceEGL::InitializeOneOff Failed.
01-02 22:46:42.784: E/chromium(1223): [ERROR:gpu_info_collector.cc(86)]  gfx::GLSurface::InitializeOneOff() Failed


01-02 22:46:42.764: E/chromium(1223): [ERROR:gl_surface_egl.cc(153)] No suitable EGL configs    found.
01-02 22:46:42.764: E/chromium(1223): [ERROR:gl_surface_egl.cc(620)] GLSurfaceEGL::InitializeOneOff Failed.
01-02 22:46:42.784: E/chromium(1223): [ERROR:gl_surface_egl.cc(153)] No suitable EGL configs found.
01-02 22:46:42.784: E/chromium(1223): [ERROR:gl_surface_egl.cc(620)] GLSurfaceEGL::InitializeOneOff Failed.
01-02 22:46:42.784: E/chromium(1223): [ERROR:gpu_info_collector.cc(86)] gfx::GLSurface::InitializeOneOff() Failed
01-02 22:46:44.724: W/AwContents(1223): nativeOnDraw Failed; clearing to background color.
01-02 22:46:45.694: W/AwContents(1223): nativeOnDraw Failed; clearing to background color.
01-02 22:46:45.954: W/AwContents(1223): nativeOnDraw Failed; clearing to background color.

这是我使用的代码

super.onCreate(savedInstanceState);
setContentView(R.layout.activitymain);

webView = (WebView) findViewById(R.id.webView);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl("http://www.sportsone.jp/futsal/m/");

解决方法

有时EGL错误可以通过简单地重新启动android虚拟设备来解决. 否则尝试启用仿真器GPU. 要在Eclipse中执行此操作,请转到“窗口”>“ AVD MANAGER选择您的AVD,然后单击“编辑…”. 检查“使用主机GPU”框,然后保存并重新启动您的AVD.
原文链接:https://www.f2er.com/android/312270.html

猜你在找的Android相关文章