出现这种错误:
01-30 16:04:47.465: I/BrowserStartupController(2896): Initializing chromium process, singleProcess=true
01-30 16:04:47.466: W/art(2896): Attempt to remove non-JNI local reference, dumping thread
01-30 16:04:47.467: E/SysUtils(2896): ApplicationContext is null in ApplicationStatus
01-30 16:04:47.500: W/chromium(2896): [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
01-30 16:04:47.502: E/libEGL(2896): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
01-30 16:04:47.502: E/libEGL(2896): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
01-30 16:04:47.502: E/chromium(2896): [ERROR:gl_surface_egl.cc(327)] No suitable EGL configs found.
01-30 16:04:47.503: E/chromium(2896): [ERROR:gl_surface_android.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
01-30 16:04:47.503: E/chromium(2896): [ERROR:browser_main_loop.cc(698)] GLSurface::InitializeOneOff failed
01-30
16:04:47.515: E/DataReductionProxySettingListener(2896): No DRP key due
to exception:java.lang.ClassNotFoundException:
com.android.webview.chromium.Drp
01-30 16:04:47.526: W/AudioManagerAndroid(2896): Requires BLUETOOTH permission
01-30 16:04:47.613: W/art(2896): Attempt to remove non-JNI local reference, dumping thread
01-30 16:04:47.622: W/AwContents(2896): onDetachedFromWindow called when already detached. Ignoring
01-30 16:04:47.639: W/art(2896): Attempt to remove non-JNI local reference, dumping thread
解决:其实代码是完全没有错误的,从网上查找了很多办法,都不管用,结果换了一个模拟器,就可以了,所以可能是模拟器的问题