问题描述
更新GMS r11包,GtsWebViewHostTestCases出现4项fail:
com.google.android.gts.webview.WebViewDisablingHostTest#testWebViewDisablingPrimaryUser fail java.lang.AssertionError: Failed to successfully run device tests for com.google.android.gts.webview: Instrumentation run failed due to 'Process crashed.'
com.google.android.gts.webview.WebViewDisablingHostTest#testUpdateAndDisableMonochrome fail java.lang.AssertionError: Failed to successfully run device tests for com.google.android.gts.webview: Instrumentation run failed due to 'Process crashed.'
com.google.android.gts.webview.WebViewDisablingHostTest#testWebViewDisablingSecondaryUser fail java.lang.AssertionError: Failed to successfully run device tests for com.google.android.gts.webview: Instrumentation run failed due to 'Process crashed.'
com.google.android.gts.webview.DisableChromeInManagedProfileTest#testWebViewDisablingManagedProfile fail java.lang.AssertionError: Failed to successfully run device tests for com.google.android.gts.webview: Instrumentation run failed due to 'Process crashed.'
解决方案
GMS r11包78版Chrome的问题,请更换成r10包里面的77版的Chrome即可pass(Webview apk因为需要和Chrome版本保证一致,所以需要同时替换,).