Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web view with No suitable EGL configs found error

I'm new to android and I'm now trying to implement a WebView example. In my application, the WebView redirect to a web page. But below in Logcat this is the error it shows. I tried to solve it, but I can't. Help me find it please. I'm really sorry if my question bothers you . This is the error :

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.

This is the code I used :

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/");
like image 508
Chann Lynn Avatar asked Jan 03 '14 04:01

Chann Lynn


1 Answers

Sometimes EGL errors can be resolved by simply restarting the android virtual device. Otherwise try enabling the emulator GPU. To do this in Eclipse go to Window > AVD MANAGER select your AVD and click "Edit...". Check the "Use Host GPU" box, then save and restart your AVD.

like image 189
David Gordon Avatar answered Nov 07 '22 05:11

David Gordon