Contains questions
Use webview 2020-10-16 E/chromium: [ERROR:address_tracker_linux.cc(245)] Could not send NETLINK request: Permission denied (13)
supporting the use of the following methods.
web_01 = findViewById ( R. id. web_01) ;
. . . . . . 各种设置,参考菜鸟教程. . . . . .
web_01. loadUrl ( "https://blog.csdn.net/qq_33721320/article/details/84400825" ) ;
web_01 = new WebView ( this ) ;
. . . . . . 各种设置,参考菜鸟教程. . . . . .
setContentView ( web_01) ;
net::ERR_CLEARTEXT_NOT_PERMITTED
Unable to load url
添加usesCleartextTraffic还是不能显示网页
, Because of the sdk version problem, sdk23 or above is required, mine is minsdk21, so add tools: targetApi.
method of obtaining
< uses- permission android: name= "android.permission.INTERNET" / >
< application
android: allowBackup= "true"
android: icon= "@mipmap/ic_launcher"
android: label= "@string/app_name"
android: roundIcon= "@mipmap/ic_launcher_round"
android: supportsRtl= "true"
android: theme= "@style/AppTheme"
android: usesCleartextTraffic= "true"
tools: targetApi= "m" >
< / application>