I searched the internet for a long time and failed to find the exact cause of the warning. Tests show that this warning is not reported if the url is not loaded. Suddenly I had an idea: is it related to html code on the page?
However, the page is a static html page that contains only a few lines of the most basic code! Later, I tested loading other pages, and the problem was fixed for a long time. It can be seen that the cause of the exception has nothing to do with the html page. It will take some time to look back.
Let's take a closer look. Let's put the problem here first .....
Public View onCreateView (android. view. layoutInflater inflater, android. view. viewGroup container, android. OS. bundle savedInstanceState) {View v = inflater. inflate (R. layout. inject_webview, null); webview = (WebView) v. findViewById (R. id. webView1); webview. loadUrl ("http: // 10.0.111.196: 1946/test"); v. findViewById (R. id. button1 ). setOnClickListener (this); // initialWebviewSetting (); return v ;}