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

前端 未结 4 1915
难免孤独
难免孤独 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 02:08

    I went through the same trouble and actually what solved it was changing the context in the constructor to context.getApplicationContext().

    After that it's building and rendering with no problems on Android 5.

提交回复
热议问题