简体   繁体   English

Flutter:无法解析配置“:path_provider:classpath”的所有工件

[英]Flutter: Could not resolve all artifacts for configuration ':path_provider:classpath'

My flutter project was working fine, but after I install path_provider package it gives me the following error when trying to run it:我的 flutter 项目运行良好,但是在我安装 path_provider package 后,尝试运行它时出现以下错误:

>FAILURE: Build failed with an exception.

> * What went wrong:
A problem occurred configuring project ':path_provider'.
> Could not resolve all artifacts for configuration ':path_provider:classpath'.
   > Could not find builder.jar (com.android.tools.build:builder:3.3.0).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.3.0/builder-3.3.0.jar
   > Could not find bundletool.jar (com.android.tools.build:bundletool:0.6.0).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.6.0/bundletool-0.6.0.jar
> Could not get unknown property 'android' for project ':path_provider' of type org.gradle.api.Project.

My development environment:我的开发环境:

Windows 10 Windows 10

android studio 3.6.3 android工作室3.6.3

flutter_windows_v1.12.13+hotfix.9-stable flutter_windows_v1.12.13+hotfix.9-stable

Gradle 5.6.2 Gradle 5.6.2

You can try:你可以试试:

  • Go to your FlutterSDK folder, then go to \.pub-cache\hosted\pub.dartlang.org\ Go 到 FlutterSDK 文件夹,然后 go 到\.pub-cache\hosted\pub.dartlang.org\
  • Then delete path_provider-xxx (specified version)然后删除path_provider-xxx(指定版本)
  • Run the app.运行应用程序。

It worked for me.它对我有用。

暂无
暂无

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

相关问题 Android Gradle 同步失败:无法解析配置“:classpath”的所有工件 - Android Gradle Sync failed: Could not resolve all artifacts for configuration ':classpath' 无法解析配置“:classpath”的所有工件。 > 无法解析 com.android.tools.build:gradle:4.1.0 - Could not resolve all artifacts for configuration ':classpath'. > Could not resolve com.android.tools.build:gradle:4.1.0 无法解析配置“:pushwoosh-react-native-plugin:classpath”的所有工件 - Could not resolve all artifacts for configuration ':pushwoosh-react-native-plugin:classpath' 无法解析配置“:app:prereleaseCompileClasspath”的所有工件 - Could not resolve all artifacts for configuration ':app:prereleaseCompileClasspath' 无法解析配置的所有依赖项:类路径' - Could not resolve all dependencies for configuration :classpath' Gradle:无法解析配置“:classpath”的所有依赖项 - Gradle: Could not resolve all dependencies for configuration ':classpath' Flutter 错误:无法解析配置“:image_picker_android:debugUnitTestRuntimeClasspath”的所有工件 - Flutter Error : Could not resolve all artifacts for configuration ':image_picker_android:debugUnitTestRuntimeClasspath' “无法解析配置 ':classpath' 的所有文件。” android 工作室中的错误 - “Could not resolve all files for configuration ':classpath'.” error in android studio 无法编译 minecraft mod:无法解析配置“:classpath”的所有文件 - Unable to compile minecraft mod: Could not resolve all files for configuration ':classpath' Flutter path_provider 在 Android 上出现错误,而在 iOS 上完美运行 - Flutter path_provider error on Android, while on iOS works perfectly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM