@Override
protected void onDestroy() {
// TODO Auto-generated method stub
webView.stopLoading();//防止报错
if (webView != null) {
ViewGroup parent = (ViewGroup) webView.getParent();
if (parent != null) {
parent.removeView(webView);
}
webView.removeAllViews();
webView.destroy();
}
super.onDestroy();
}
WebView退出的时的报错
最新推荐文章于 2023-04-18 11:03:06 发布