简体   繁体   English

flutter 错误无法确定任务':app:compileDebugJavaWithJavac'和配置':app:debugCompileClasspath'的依赖关系

[英]flutter error Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' and config ':app:debugCompileClasspath'

Frustrated.沮丧的。 I don't know anymore how to handle this issue.我不知道如何处理这个问题了。 There are no good documentation regarding this issues.没有关于这个问题的好的文档。

I've tried upgrading gradle to the latest version as well as upgrading build tools and so on.我已经尝试将 gradle 升级到最新版本以及升级构建工具等。 Some idiots even asked me to run flutter doctor --android-licenses and I did it, it didn't work.一些白痴甚至让我运行flutter doctor --android-licenses我做到了,但没有用。

The error:错误:

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

What Flutter Doctor says about me 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 I'VE INSTALLED FLUTTER AND DART PLUGINS. Ps 我已经安装了 FLUTTER 和 DART 插件。 No idea why it's still listed as not installed.不知道为什么它仍然被列为未安装。 Have restarted my pc for several times as well.我的电脑也重启了好几次。 I also have no idea why it can't determine bundle Java version.我也不知道为什么它无法确定捆绑 Java 版本。 Jesus.耶稣。

If any of you have an answer, do give the details and please don't refer me another link.如果你们中的任何人有答案,请提供详细信息,请不要给我另一个链接。 I've practically seen all of them.我几乎都看过了。 Thanks in advance.提前致谢。

i would like to inform please check your android SDK.我想通知请检查您的 android SDK。 And Copy SDK path then config your sdk.并复制 SDK 路径,然后配置您的 sdk。

here is the command.这是命令。

flutter config --android-studio-dir="C:"SDK path " flutter 配置 --android-studio-dir="C:"SDK 路径"

then run flutter doctor again.然后再次运行 flutter 医生。

暂无
暂无

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

相关问题 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系。[Flutter] - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.[Flutter] 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 - Flutter - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' - Flutter 无法确定任务 ':app:compileDebugJavaWithJavac' Flutter 的依赖关系 - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' Flutter flutter 错误无法确定任务':app:compileDebugJavaWithJavac'的依赖关系 - flutter error Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' Flutter 构建错误:无法确定任务':app:compileDebugJavaWithJavac的依赖关系 - Flutter Build Error:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac 错误:无法确定任务':app:compileDebugJavaWithJavac'的依赖关系 - Error:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' 错误=>无法确定任务':app:compileDebugJavaWithJavac'的依赖关系 - Error=> Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' flutter run 无法确定任务':app:compileDebugJavaWithJavac'的依赖关系 - flutter run Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' Flutter 通知 OneSignal - 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 - Flutter Notification OneSignal - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' 无法确定任务“:app:compileDebugJavaWithJavac”的依赖关系。 - 颤振问题 - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. - Flutter Issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM