android Failed to load WebView provider: No WebView installed

前端 未结 4 2079
甜味超标
甜味超标 2020-12-05 18:18

Recently, we\'ve started seeing this new entry in our crashlytics which says that android can\'t find the webview package on the device.

Here\'s the full stacktrace

4条回答
  •  盖世英雄少女心
    2020-12-05 18:41

    According to the TextView's sourceCode

    if (mAutoLinkMask != 0) {
        ...
        if (Linkify.addLinks(s2, mAutoLinkMask)) {
            ...
        }
    }
    

    The textview with android:autoLink property will call Linkify.addLinks (reaches the method of WebView finally) and cause the crash.

    So, we can remove the android:autoLink property and realize with other way to fix the problem.

提交回复
热议问题