Could someone help me with this crash report

前端 未结 2 1014
無奈伤痛
無奈伤痛 2020-12-14 11:07
Build fingerprint: \'Verizon/kltevzw/kltevzw:5.0/LRX21T/G900VVRU2BOE1:user/release-keys\'
Revision: \'14\'
ABI: \'arm\'
pid: 30968, tid: 30968, name: com.myapp >&         


        
2条回答
  •  庸人自扰
    2020-12-14 11:33

    Had the same issue and after hours of trial and error, I have finally solved this. All you have to do is destroy() the WebView before Activity finishes

    @Override
    protected void onDestroy() {
        if (myWbView != null)
            myWbView.destroy();
        super.onDestroy();
    }
    

    Maybe if (myWbView != null) is not really necessary, but I wrote it anyway to stay safe

提交回复
热议问题