应用程序运行正常且Webview不再使用该项目,那么为什么显示错误?
ERROR
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/ali/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-
0.3.22+1/android/src/main/java/io/flutter/plugins/webviewflutter/FlutterWebView.java uses
unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/ali/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-
5.7.2/android/src/main/java/io/flutter/plugins/urllauncher/WebViewActivity.java uses or
overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
最佳答案
尝试:
在Android/app/build.gradle
文件中添加以下代码
configurations {
compile.exclude group: 'com.google.zxing'
}
关于android - 如何解决webview抖动会覆盖已弃用的API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64641182/