简体   繁体   English

无法解析配置 ':app:debugRuntimeClasspath' firebase 的所有文件

[英]Could not resolve all files for configuration ':app:debugRuntimeClasspath' firebase

I'm using these packages with no specific versions assigned to them.我正在使用这些包,但没有为其分配特定版本。

 firebase_auth: any
 firebase_core: any
 cloud_firestore: any
 tab_indicator_styler: any
 sizer: any
 device_preview: any
 dotted_border: any

and I keep getting this message:我不断收到这条消息:

FAILURE: Build failed with an exception. FAILURE:构建失败并出现异常。

  • What went wrong: Execution failed for task ':app:checkDebugAarMetadata'.出了什么问题:任务':app:checkDebugAarMetadata'的执行失败。

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.无法解析配置“:app:debugRuntimeClasspath”的所有文件。 Failed to transform firebase-auth-21.0.3.aar (com.google.firebase:firebase-auth:21.0.3) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.无法转换 firebase-auth-21.0.3.aar (com.google.firebase:firebase-auth:21.0.3) 以匹配属性 {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle .libraryelements=jar,org.gradle.status=release,org.gradle.usage=java-runtime}。 > Could not find firebase-auth-21.0.3.aar (com.google.firebase:firebase-auth:21.0.3). > 找不到 firebase-auth-21.0.3.aar (com.google.firebase:firebase-auth:21.0.3)。 Searched in the following locations: https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-auth/21.0.3/firebase-auth-21.0.3.aar Failed to transform firebase-auth-interop-20.0.0.aar (com.google.firebase:firebase-auth-interop:20.0.0) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.在以下位置搜索: https ://dl.google.com/dl/android/maven2/com/google/firebase/firebase-auth/21.0.3/firebase-auth-21.0.3.aar 无法转换 firebase- auth-interop-20.0.0.aar (com.google.firebase:firebase-auth-interop:20.0.0) 以匹配属性 {artifactType=android-aar-metadata, org.gradle.status=release}。 > Could not find firebase-auth-interop-20.0.0.aar (com.google.firebase:firebase-auth-interop:20.0.0). > 找不到 firebase-auth-interop-20.0.0.aar (com.google.firebase:firebase-auth-interop:20.0.0)。 Searched in the following locations: https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-auth-interop/20.0.0/firebase-auth-interop-20.0.0.aar Failed to transform firebase-auth-interop-20.0.0.aar (com.google.firebase:firebase-auth-interop:20.0.0) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.在以下位置搜索: https ://dl.google.com/dl/android/maven2/com/google/firebase/firebase-auth-interop/20.0.0/firebase-auth-interop-20.0.0.aar 失败转换 firebase-auth-interop-20.0.0.aar (com.google.firebase:firebase-auth-interop:20.0.0) 以匹配属性 {artifactType=android-aar-metadata, org.gradle.status=release} . > Could not find firebase-auth-interop-20.0.0.aar (com.google.firebase:firebase-auth-interop:20.0.0). > 找不到 firebase-auth-interop-20.0.0.aar (com.google.firebase:firebase-auth-interop:20.0.0)。 Searched in the following locations: https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-auth-interop/20.0.0/firebase-auth-interop-20.0.0.aar Failed to transform play-services-auth-api-phone-17.4.0.aar (com.google.android.gms:play-services-auth-api-phone:17.4.0) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.在以下位置搜索: https ://dl.google.com/dl/android/maven2/com/google/firebase/firebase-auth-interop/20.0.0/firebase-auth-interop-20.0.0.aar 失败转换 play-services-auth-api-phone-17.4.0.aar (com.google.android.gms:play-services-auth-api-phone:17.4.0) 以匹配属性 {artifactType=android-aar-元数据,org.gradle.status=release}。 > Could not find play-services-auth-api-phone-17.4.0.aar (com.google.android.gms:play-services-auth-api-phone:17.4.0). > 找不到 play-services-auth-api-phone-17.4.0.aar (com.google.android.gms:play-services-auth-api-phone:17.4.0)。 Searched in the following locations: https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-auth-api-phone/17.4.0/play-services-auth-api-phone-17.4.0.aar Failed to transform play-services-safetynet-17.0.0.aar (com.google.android.gms:play-services-safetynet:17.0.0) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.在以下位置搜索: https ://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-auth-api-phone/17.4.0/play-services-auth- api-phone-17.4.0.aar无法转换 play-services-safetynet-17.0.0.aar (com.google.android.gms:play-services-safetynet:17.0.0) 以匹配属性 {artifactType=android- aar 元数据,org.gradle.status=release}。 > Could not find play-services-safetynet-17.0.0.aar (com.google.android.gms:play-services-safetynet:17.0.0). > 找不到 play-services-safetynet-17.0.0.aar (com.google.android.gms:play-services-safetynet:17.0.0)。 Searched in the following locations: https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-safetynet/17.0.0/play-services-safetynet-17.0.0.aar Failed to transform browser-1.0.0.aar (androidx.browser:browser:1.0.0) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.在以下位置搜索: https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-safetynet/17.0.0/play-services-safetynet-17.0.0。 aar无法转换 browser-1.0.0.aar (androidx.browser:browser:1.0.0) 以匹配属性 {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release,org.gradle.usage=java-runtime}。 > Could not find browser-1.0.0.aar (androidx.browser:browser:1.0.0). > 找不到 browser-1.0.0.aar (androidx.browser:browser:1.0.0)。 Searched in the following locations: https://dl.google.com/dl/android/maven2/androidx/browser/browser/1.0.0/browser-1.0.0.aar Failed to transform legacy-support-core-ui-1.0.0.aar (androidx.legacy:legacy-support-core-ui:1.0.0) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.在以下位置搜索: https ://dl.google.com/dl/android/maven2/androidx/browser/browser/1.0.0/browser-1.0.0.aar 无法转换 legacy-support-core-ui- 1.0.0.aar (androidx.legacy:legacy-support-core-ui:1.0.0) 匹配属性 {artifactType=android-aar-metadata, org.gradle.status=release}。 > Could not find legacy-support-core-ui-1.0.0.aar (androidx.legacy:legacy-support-core-ui:1.0.0). > 找不到 legacy-support-core-ui-1.0.0.aar (androidx.legacy:legacy-support-core-ui:1.0.0)。 Searched in the following locations: https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-core-ui/1.0.0/legacy-support-core-ui-1.0.0.aar Failed to transform coordinatorlayout-1.0.0.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.在以下位置搜索: https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-core-ui/1.0.0/legacy-support-core-ui-1.0.0。 aar无法转换 coordinatorlayout-1.0.0.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0) 以匹配属性 {artifactType=android-aar-metadata, org.gradle.status=release}。 > Could not find coordinatorlayout-1.0.0.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0). > 找不到 coordinatorlayout-1.0.0.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0)。 Searched in the following locations: https://dl.google.com/dl/android/maven2/androidx/coordinatorlayout/coordinatorlayout/1.0.0/coordinatorlayout-1.0.0.aar在以下位置搜索: https ://dl.google.com/dl/android/maven2/androidx/coordinatorlayout/coordinatorlayout/1.0.0/coordinatorlayout-1.0.0.aar

  • Try:尝试:

Run with --stacktrace option to get the stack trace.使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.使用 --info 或 --debug 选项运行以获得更多日志输出。 Run with --scan to get full insights.运行 --scan 以获得完整的见解。

I'm not sure but I think this is happening because I didn't put specific versions.我不确定,但我认为这是因为我没有放具体版本。 I tried firebase_auth: ^3.4.1 instead of firebase_auth: any.我尝试了 firebase_auth: ^3.4.1 而不是 firebase_auth: any。 But it didn't work.但它没有用。 My flutter version is 3.0.1我的颤振版本是 3.0.1

Thanks in advance.提前致谢。

My guess is that there was a version conflict.我的猜测是存在版本冲突。 Try the stable version of firebase.试试 Firebase 的稳定版本。 My flutter version is 3.0.4.我的颤振版本是 3.0.4。

flutter clean
firebase_auth: ^3.1.4
firebase_core: ^1.8.0
cloud_firestore: ^3.1.17
flutter pub get

The latest version always introduces problems such as bugs, so it is recommended to immobilize the version.最新版本总是会引入bug等问题,所以建议固定版本。

暂无
暂无

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

相关问题 无法解析配置“:app:debugRuntimeClasspath”的所有文件。,flutter - Could not resolve all files for configuration ':app:debugRuntimeClasspath'., flutter Flutter:任务“:app:checkDebugAarMetadata”执行失败。 无法解析配置“:app:debugRuntimeClasspath”的所有文件 - Flutter: Execution failed for task ':app:checkDebugAarMetadata'. Could not resolve all files for configuration ':app:debugRuntimeClasspath' 为什么Flutter构建失败并出现错误无法解析配置':app:debugRuntimeClasspath'的所有文件 - Why does the Flutter build failed with the error Could not resolve all files for configuration ':app:debugRuntimeClasspath' android failed 无法解析配置':app:debugRuntimeClasspath'的所有依赖项 - android failed Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath' 任务 ':app:lintVitalRelease' 执行失败。 > 无法解析配置 ':app:debugRuntimeClasspath' 的所有工件 - Execution failed for task ':app:lintVitalRelease'. > Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath' 无法解析配置“:app:debugRuntimeClasspath”的所有文件。 > 找不到 com.github.adrielcafe:ffmpeg-android-java:2a627f6ecd - Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.adrielcafe:ffmpeg-android-java:2a627f6ecd 无法解析配置的所有文件':app:androidJdkImage - Could not resolve all files for configuration ':app:androidJdkImage firebase、flutter 错误“无法解析所有配置文件” - firebase, flutter error 'Could not resolve all files for configuration' Flutter 无法解析配置的所有文件 - Flutter Could not resolve all files for configuration 无法解析配置“:app:debugCompileClasspath”的所有工件 - Could not resolve all artifacts for configuration ':app:debugCompileClasspath'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM