WebView Crash on Android 5-5.1 (API 21-22) Resources$NotFoundException: String resource ID #0x2040002

前端 未结 4 1865
难免孤独
难免孤独 2021-02-01 01:49

I am in the process of updating an Android app from API 27 to API 29 and I noticed that I get a crash when trying to render a WebView on an emulator based on 5.0 and/or 5.1. Thi

4条回答
  •  长情又很酷
    2021-02-01 01:58

    It seems to be a bug with appcompat 1.1.0 - https://issuetracker.google.com/issues/141132133

    Looking at #30 in that discussion, this solved my problem:

    // add to gradle module:app
    configurations.all {
        resolutionStrategy {
            force 'androidx.appcompat:appcompat:1.1.0-rc01'
        }
    }
    

提交回复
热议问题