Google play上架警告 — SSL Error Handler的問題

google play上架警告信息,項目中webview onReceivedSslError重寫,最後發現還是出現警告,最終發現在第三方sdk中也有改方法沒有處理,刪除不必要的sdk,再上傳終於解決了

 @Override
 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
	if(null != handler){
		handler.proceed();
	}	
}

在這裏插入圖片描述
在項目根目錄下,輸入如下命令,搜索項目中的webview的該方法:

find . -name '*.jar' -exec zipgrep -i onreceivedsslerror {} \;

輸出如下:
com/bytedance/sdk/openadsdk/core/widget/webview/c.class:Binary file (standard input) matches
classes.dex:Binary file (standard input) matches
classes.dex:Binary file (standard input) matches

這時就可以定位找到對應的類

Good luck!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章