[英]flutter android Could not determine the dependencies of task ':app:lintVitalRelease'
I am using flutter webrtc package
but i want try to create apk i am getting below error.我正在使用flutter webrtc package
但我想尝试创建 apk 我遇到了以下错误。 flutter doctor
commands shows everything is correct. flutter doctor
显示一切正常。 I am using latest 3.9 version of flutter. I already tried flutter clean
many times我正在使用 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.
*
For whoever reaches this question in the future, you should use GitHub as a source in your pubspec
file instead of a version:对于将来遇到此问题的任何人,您应该在pubspec
文件中使用 GitHub 作为源而不是版本:
flutter_webrtc:
git: https://github.com/flutter-webrtc/flutter-webrtc
This fixed the error for me.这为我修复了错误。
Reference: https://github.com/flutter-webrtc/flutter-webrtc/issues/1184参考: https://github.com/flutter-webrtc/flutter-webrtc/issues/1184
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.