相关疑难解决方法(0)

升级到Cordova Android 8后,为什么会看到net :: ERR_CLEARTEXT_NOT_PERMITTED错误?

升级到Cordova Android 8.0后net::ERR_CLEARTEXT_NOT_PERMITTED尝试连接http://目标时出现错误。

为什么会这样,我该如何解决呢?

android cordova

77
推荐指数
12
解决办法
5万
查看次数

如何在颤抖中修复'net :: ERR_CLEARTEXT_NOT_PERMITTED'

我已经在flutter中实现了webView,但是它没有打开我在服务器上做错的php网站。

我是陌生的,尝试使用webview将我的网站网页集成到我的应用程序中,但是没有运气。

Widget build(BuildContext context) {
    // TODO: implement build
    return WebviewScaffold(
      appBar: AppBar(iconTheme:IconThemeData(color: Colors.white),title: Text("Intake Form",style:new TextStyle(color: Colors.white,fontWeight: FontWeight.bold)),backgroundColor:Colors.indigoAccent,automaticallyImplyLeading: false),
     url: url,
      //url: "http://61.246.39.79:8080/",
       withJavascript: true,
       supportMultipleWindows: true,
      withLocalStorage: true,
      allowFileURLs: true,
      enableAppScheme: true,
      appCacheEnabled: true,
      hidden: false,
      scrollBar: true,
      geolocationEnabled: false,
      clearCookies: true,
       // usesCleartextTraffic="true"



    );
  }
Run Code Online (Sandbox Code Playgroud)

我期望输出为正在运行的webview,但会引发错误。

flutter flutter-dependencies

4
推荐指数
4
解决办法
1万
查看次数

标签 统计

android ×1

cordova ×1

flutter ×1

flutter-dependencies ×1