![](/img/trans.png)
[英]Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.[Flutter]
[英]flutter error Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' and config ':app:debugCompileClasspath'
沮丧的。 我不知道如何处理这个问题了。 没有关于这个问题的好的文档。
我已经尝试将 gradle 升级到最新版本以及升级构建工具等。 一些白痴甚至让我运行flutter doctor --android-licenses
我做到了,但没有用。
错误:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
> Could not resolve com.google.zxing:core:{strictly 3.3.0}.
Required by:
project :app
> Cannot find a version of 'com.google.zxing:core' that satisfies the version constraints:
Dependency path 'android:app:unspecified' --> 'com.facebook.android:facebook-android-sdk:8.2.0' --> 'com.facebook.android:facebook-common:8.2.0' --> 'com.google.zxing:core:3.3.3'
Constraint path 'android:app:unspecified' --> 'com.google.zxing:core:{strictly 3.3.0}' because of the following reason: debugRuntimeClasspath uses version 3.3.0
> Could not resolve com.google.zxing:core:3.3.3.
Required by:
project :app > com.facebook.android:facebook-android-sdk:8.2.0 > com.facebook.android:facebook-common:8.2.0
> Cannot find a version of 'com.google.zxing:core' that satisfies the version constraints:
Dependency path 'android:app:unspecified' --> 'com.facebook.android:facebook-android-sdk:8.2.0' --> 'com.facebook.android:facebook-common:8.2.0' --> 'com.google.zxing:core:3.3.3'
Constraint path 'android:app:unspecified' --> 'com.google.zxing:core:{strictly 3.3.0}' because of the following reason: debugRuntimeClasspath uses version 3.3.0
Flutter 医生怎么说我
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.19042.1348], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[!] Android Studio (version 4.1.0)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
X Unable to determine bundled Java version.
[√] VS Code (version 1.63.0)
[√] Connected device (1 available)
Ps 我已经安装了 FLUTTER 和 DART 插件。 不知道为什么它仍然被列为未安装。 我的电脑也重启了好几次。 我也不知道为什么它无法确定捆绑 Java 版本。 耶稣。
如果你们中的任何人有答案,请提供详细信息,请不要给我另一个链接。 我几乎都看过了。 提前致谢。
我想通知请检查您的 android SDK。 并复制 SDK 路径,然后配置您的 sdk。
这是命令。
flutter 配置 --android-studio-dir="C:"SDK 路径"
然后再次运行 flutter 医生。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.