[Android]Error: WebView.destroy() called while still attached
protected void onDestroy()
{
if (adView != null)
{
adView.destroy();
}
}
Error: WebView.destroy() called while still attached
![](https://pic.jp.ai/avatar/000/00/00/16_avatar_mid.jpg)
0
iQi - 面白いアプリを開発中
正しいやり方は下記となります。
webViewPlaceholder.removeView(myWebView);
myWebView.removeAllViews();
myWebView.destroy();