【问题标题】:how to solve webview flutter overrides a deprecated API?如何解决 webview 颤振覆盖已弃用的 API?
【发布时间】:2021-02-14 20:27:16
【问题描述】:

app 运行良好,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 ios flutter dart flutter-build


    【解决方案1】:

    尝试:

    Android/app/build.gradle文件中添加以下代码

    configurations {
    compile.exclude group: 'com.google.zxing'
    }
    

    【讨论】:

      猜你喜欢
      • 2021-10-31
      • 1970-01-01
      • 2019-10-17
      • 1970-01-01
      • 2021-12-11
      • 2020-04-19
      • 2021-04-27
      • 2021-08-26
      相关资源
      最近更新 更多