flutter 无法确定任务':app:lintVitalRelease'的依赖项

14ifxucb  于 2022-11-30  发布在  Flutter
关注(0)|答案(1)|浏览(220)

我正在使用flutter webrtc package,但我想尝试创建apk,我得到下面的错误。flutter doctor命令显示一切都是正确的。我正在使用最新的3.9版本的Flutter。我已经尝试了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.

*
cwtwac6a

cwtwac6a1#

对于将来遇到这个问题的人,你应该使用GitHub作为pubspec文件中的源代码,而不是版本:

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

这为我修复了错误。
参考:https://github.com/flutter-webrtc/flutter-webrtc/issues/1184

相关问题