java.util.concurrent.TimeoutException: android.view.ThreadedRenderer.finalize() timed out after 10 seconds

后端 未结 2 1596
青春惊慌失措
青春惊慌失措 2021-01-30 10:41

I am getting this strange crash reports on Lollipop. My app is basically a browser so it makes heavy use of the WebView but I don\'t know that the issue is happening there. Anyw

2条回答
  •  别那么骄傲
    2021-01-30 11:26

    Since KitKat, I have issues with WebViews (freeze, crash)

    I have resolved these issues deactivating hardware acceleration for webViews. It could work for you.

    if (Build.VERSION.SDK_INT >= 19) // KITKAT
    {
        webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
    }
    

提交回复
热议问题