gpt4 book ai didi

android - Lollipop 上的 WebView 不起作用,但它适用于 Kitkat

转载 作者:太空狗 更新时间:2023-10-29 14:51:46 24 4
gpt4 key购买 nike

我的 WebView 在 Kitkat 和较低的 API 级别上运行良好,但在 Lollipop 上我的 WebView 处于无限加载状态。如何修复它以便在 Lollipop 上也能正常工作?

这是显示的错误:

E/SysUtils: ApplicationContext is null in ApplicationStatus...
E/chromium: [ERROR:browser_gpu_channel_host_factory.cc(258)] Failed to init browser shader disk cache...
E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)

最佳答案

嗯!较新版本的 android(我猜是 5.0+)正在使用可更新的 WebView

The bad parts Of course, all of this is not of much use at the moment because Android OS usage statistics look like this: Android usage statistics

And we still need to support older versions of Android in our hybrid apps, sometimes all the way to Gingerbread. The situation will probably change soon and this is really not that much of an issue in the long run.

But there's still the problem with Android fragmentation and many different device manufacturers "improving" their own versions of Android. They can (and probably will) change the WebView and adjust it to their own needs. So I guess we'll keep on fighting WebView device inconsistencies, but at least to a lesser extent.

https://infinum.co/the-capsized-eight/articles/the-updateable-webview-on-android-5-lollipop-what-is-it-and-why-should-you-care

关于android - Lollipop 上的 WebView 不起作用,但它适用于 Kitkat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34667168/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com