颤振错误 无法确定任务':app:compileDebugJavaWithJavac'和配置':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)

附言:我已经安装了Flutter和Dart插件。不知道为什么它仍然被列为未安装。我已经重新启动电脑好几次了。我也不知道为什么它不能确定捆绑Java版本。

请检查您的android SDK。记下您的SDK路径(SDK_path(,然后将其用于配置。这是命令:

flutter config --android-studio-dir="SDK_path" 

然后再次运行扑动医生。

相关内容

  • 没有找到相关文章

最新更新