我正在使用 Webview 版本
webview_flutter: ^2.0.6
android studio 在运行时抛出此错误并停止构建
操作系统版本
minSdkVersion 19
targetSdkVersion 30
A:\flutter.pub-cache\hosted\pub.dartlang.org\webview_flutter-2.0.6\android\src\main\java\io\flutter\plugins\webviewflutter\InputAwareWebView.java:31: error: cannot find symbol private ThreadedInputConnectionProxyAdapterView proxyAdapterView; ^ symbol: class ThreadedInputConnectionProxyAdapterView location: class InputAwareWebView
A:\flutter.pub-cache\hosted\pub.dartlang.org\webview_flutter-2.0.6\android\src\main\java\io\flutter\plugins\webviewflutter\InputAwareWebView.java:112: error: cannot find symbol new ThreadedInputConnectionProxyAdapterView( ^ symbol: class ThreadedInputConnectionProxyAdapterView location: class InputAwareWebView Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 2 errors
FAILURE: Build failed with an exception.
如何修复此错误?
最佳答案
ThreadedInputConnectionProxyAdapterView 有错误的扩展名 .jav
只需将其更改为 .java,直到 flutter 团队发布修复程序。
问题请引用github链接
https://github.com/flutter/flutter/issues/82800
关于android - Flutter Webview 抛出编译错误-ThreadedInputConnectionProxyAdapterView location : class InputAwareWebView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67583501/