Android webview org.chromium.content.browser.input.SelectPopupAdapter.getView

使用webview浏览网页,网页中有select标签,在 8.0 的系统上报了问题:

StackTrace=Resource ID#0x0android.content.res.Resources$NotFoundException: Resource ID #0x0at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:245)at android.content.res.Resources.loadXmlResourceParser(Resources.java:2184)at android.content.res.Resources.getLayout(Resources.java:1175)at android.view.LayoutInflater.inflate(LayoutInflater.java:427)at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:416)at android.widget.ArrayAdapter.getView(ArrayAdapter.java:407)at org.chromium.content.browser.input.SelectPopupAdapter.getView(SelectPopupAdapter.java:13)at android.widget.AbsListView.obtainView(AbsListView.java:2472)at android.widget.ListView.measureHeightOfChildren(ListView.java:1408)at android.widget.ListView.onMeasure(ListView.java:1315)...

1

2

3

4

5

6

7

8

9

10

11

12

解决方案

升级 compileSdkVersion 到 26, 

更新 com.android.support:appcompat-v7 为 26

如:

compileSdkVersion26buildToolsVersion'26.0.3'

1

2

compile'com.android.support:appcompat-v7:26.1.0'

1

如果 com.android.support:appcompat-v7:26.1.0 无法找到 ,可参考 

Failed to resolve: com.android.support:appcompat-v7:27.0.1问题解决

参考资料:

https://blog.csdn.net/haha_zhan/article/details/80311720

Why does Android OS 8 WebVew with HTML select tag crash the app

https://issuetracker.google.com/issues/37137929

https://issuetracker.google.com/issues/77246450

你可能感兴趣的:(Android webview org.chromium.content.browser.input.SelectPopupAdapter.getView)