FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not resolve com.facebook.android:facebook-android-sdk:latest.release.
Required by:
project :app
> Failed to list versions for com.facebook.android:facebook-android-sdk.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/android/facebook-android-sdk/maven-metadata.xml.
> Could not HEAD 'https://jcenter.bintray.com/com/facebook/android/facebook-android-sdk/maven-metadata.xml'.
> Read timed out
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 8s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
這是我在運行應用程式時遇到的錯誤
我嘗試在我的 build.gradle 檔案中添加 mavenCentral() 作為其中的一些建議,但它對我不起作用。我也試過
implementation 'com.facebook.android:facebook-android-sdk:latest.release'
但還是一樣
uj5u.com熱心網友回復:
作為臨時措施,
我建議使用這個
allprojects {
repositories {
// Jcenter mirror
maven { url "https://maven.aliyun.com/repository/jcenter" }
// other repo
}
}
或其他鏡子
uj5u.com熱心網友回復:
我現在遇到了同樣的問題,我發現 jcenter 出現了中斷:
https://status.gradle.com/
uj5u.com熱心網友回復:
嗨,在您的 build.gradle 中,您不應該添加實作“com.facebook.android:facebook-login:15.0.2”,因為該插件已經為您定義了該依賴項。
參考:https ://github.com/darwin-morocho/flutter-facebook-auth/issues/301#issuecomment-1296944186
從 build.gradle 中洗掉這一行: implementation 'com.facebook.android:facebook-android-sdk:latest.release'
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/523341.html
上一篇:如何將選定日期的值分配給變數
