Advertisement
retnet

lolipop Error inflating class android.webkit.WebView

Mar 21st, 2020
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. android.view.InflateException Error inflating class android.webkit.WebView
  2. error for android 5 lolipop
  3.  
  4. solved
  5. =======
  6. If you are using androidx.appcompat:appcompat:1.1.0 and don't want to downgrade to androidx.appcompat:appcompat:1.0.2 or upgrading to androidx.appcompat:appcompat:1.2.0-alpha02
  7. add =
  8. ========
  9. Java
  10. @Override
  11. public AssetManager getAssets() {
  12. return getResources().getAssets();
  13. }
  14.  
  15. Kotlin
  16. override fun getAssets(): AssetManager {
  17. return resources.assets
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement