FlutterWebview抛出编译错误-ThreadedInputConnectionProxyAdapterViewlocation:classInputAwareWebView

我正在使用 Webview 版本

webview_flutter:^2.0.6

运行时 android studio 抛出此错误并停止构建

操作系统版本

minSdkVersion 19

目标SDK版本30

A:flutter.pub-cachehostedpub.dartlang.orgwebview_flutter-2.0.6androidsrcmainjavaioflutterpluginswebviewflutterInputAwareWebView.java:31: 错误:找不到符号私有 ThreadedInputConnectionProxyAdapterView proxyAdapterView; ^ 符号:类 ThreadedInputConnectionProxyAdapterView 位置:类 InputAwareWebView

A:flutter.pub-cachehostedpub.dartlang.orgwebview_flutter-2.0.6androidsrcmainjavaioflutterpluginswebviewflutterInputAwareWebView.java:112: 错误:找不到符号new ThreadedInputConnectionProxyAdapterView( ^ 符号:类 ThreadedInputConnectionProxyAdapterView 位置:类 InputAwareWebView 注意:某些输入文件使用或覆盖已弃用的 API。注意:使用 -Xlint:deprecation 重新编译以获取详细信息。2 个错误

FAILURE:构建失败,出现异常。

如何修复此错误?

回答

ThreadedInputConnectionProxyAdapterView 有错误的扩展名 .jav 只需将其更改为 .java 直到 flutter 团队发布修复程序。

问题请参考github链接

https://github.com/flutter/flutter/issues/82800


以上是FlutterWebview抛出编译错误-ThreadedInputConnectionProxyAdapterViewlocation:classInputAwareWebView的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>