FrameEvents(31583):updateAcquireFence:未找到框架

Yus*_*lay 9 android dart flutter flutter-inappwebview

当我切换到使用 InAppwebView 设置的应用程序中的某些页面时,出现此错误( updateAcquireFence: 未找到框架),同一项目在 Android 版本 6 的设备上运行没有任何问题,但在 Android 版本 11 的设备上运行没有任何问题12 我收到此错误。你能帮忙吗,提前谢谢

       InAppWebView(
                    onWebViewCreated: ((_controller) {
                      controller = _controller;
                    }),

                    initialUrlRequest: URLRequest(
                        url: Uri.parse('')),
                  
                    initialOptions: InAppWebViewGroupOptions(

                        crossPlatform: InAppWebViewOptions(
                          javaScriptEnabled: true,
                          mediaPlaybackRequiresUserGesture: false,
                          supportZoom: false,

                        ),

                        android: AndroidInAppWebViewOptions(

                          mixedContentMode: AndroidMixedContentMode

                              .MIXED_CONTENT_ALWAYS_ALLOW,
                        )),

                    onProgressChanged:

                        (InAppWebViewController controller, int progress) {

                      setState(() {

                        this.progress = progress / 100;

                      });
                    },
                  ),
Run Code Online (Sandbox Code Playgroud)

小智 -1

如果您的 webview 应用程序可以在旧 Android 版本中运行,但不能在新 Android 版本中运行,则您需要执行以下操作。

将此代码添加到 android 清单文件中

<application...android:usesCleartextTraffic="true">
Run Code Online (Sandbox Code Playgroud)

然后执行 flutter clean 并再次运行应用程序。