我是
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/");