繁体   English   中英

flutter android 无法确定任务“:app:lintVitalRelease”的依赖关系

[英]flutter android Could not determine the dependencies of task ':app:lintVitalRelease'

我正在使用flutter webrtc package但我想尝试创建 apk 我遇到了以下错误。 flutter doctor显示一切正常。 我正在使用 flutter 的最新 3.9 版本。我已经多次尝试flutter clean

* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
   > Could not find android-104.5112.03.jar (com.github.webrtc-sdk:android:104.5112.03).
     Searched in the following locations:
         https://jitpack.io/com/github/webrtc-sdk/android/104.5112.03/android-104.5112.03.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

*

对于将来遇到此问题的任何人,您应该在pubspec文件中使用 GitHub 作为源而不是版本:

flutter_webrtc:
  git: https://github.com/flutter-webrtc/flutter-webrtc

这为我修复了错误。

参考: https://github.com/flutter-webrtc/flutter-webrtc/issues/1184

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM