在SDK模拟器上更新Android System WebView [英] Update Android System WebView on SDK Emulator

查看:455
本文介绍了在SDK模拟器上更新Android System WebView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android 5.x设备上进行了最新的Android System WebView更新(44.0.2403.39)之后,我的cordova应用出现了问题。



我想更新在SDK仿真器上复制问题。但是Android 5.1的标准映像随WebView版本39一起提供。



有什么方法可以在模拟器上更新此组件吗?



我找到了更新的APK ?它包含WebView 44。



而当我们在这里时,还有更多背景信息:




  • Android AOSP(与SDK一起提供)中的WebView和Android GMS(Google品牌的设备)中的WebView是不同的软件包,并且已连接操作系统以使用相应的软件包。因此,即使可以将这些apks交叉安装在其他操作系统上也可以,但它们在那里将无法运行。


  • WebView是通过Play商店更新的,仅在GMS设备上存在,而在模拟器上不存在。因此,只能手动更新AOSP版本。


  • 但是,除了这些软件包名称不同之外,WebView AOSP和WebView GMS本质上是相同的。


  • 您甚至可以自己构建WebView AOSP 。虽然,这将需要强大的Linux计算机才能退出。



I have a problem with my cordova app after the latest Android System WebView update (44.0.2403.39) on Android 5.x devices.

I would like to update the replicate the problem on the SDK Emulator. But the standard image of Android 5.1 comes with the WebView version 39.

Is there any way to update this component on the emulator?

I've found the APK for the update here but after installing it shows two entries on the App list on System Settings and it's not updating. So I can't replicate the problem.

The first one is the view that comes with the emulator v39 and the second one is the v44

  • Also is there any way to modify the system files on the emulator to update it manually?
  • Or a programatically way to change Webview with adb shell?

解决方案

Did you try the M preview SDK? It contains WebView 44.

And while we are here, some more background:

  • WebView in Android AOSP (which comes with the SDK) and WebView in Android GMS (Google-branded devices) are different packages, and the OS is wired to use the corresponding package. Thus, even though it's possible to install these apks criss-cross on a different OS flavour, they will not work there.

  • WebView is updated via Play Store, which only exists on GMS devices, not on the emulator. So the AOSP version can only be updated manually.

  • But besides these package name differences, both WebView AOSP and WebView GMS are essentially the same.

  • You can even build WebView AOSP yourself. Although, this will require a beefy Linux machine to pull out.

这篇关于在SDK模拟器上更新Android System WebView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆