我的專案一直運行良好,直到明天現在我在所有具有facebookLogin.
- pubspac.yaml
flutter_login_facebook: ^1.6.0
compileSdkVersion
compileSdkVersion 33minSdkVersion
minSdkVersion 20存盤庫
repositories { google() mavenCentral() }依賴關系
dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation platform('com.google.firebase:firebase-bom:29.2.1') implementation 'com.google.firebase:firebase-analytics-ktx' implementation 'com.facebook.android:facebook-login:latest.release' }
我面臨以下錯誤。
* 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-login:latest.release.
Required by:
project :app
> Failed to list versions for com.facebook.android:facebook-login.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/android/facebook-login/maven-metadata.xml.
> Could not HEAD 'https://jcenter.bintray.com/com/facebook/android/facebook-login/maven-metadata.xml'.
> Read timed out
uj5u.com熱心網友回復:
在 /android/app/build.gradle 中的dependencies中,更改此行
implementation 'com.facebook.android:facebook-login:latest.release'
至
implementation 'com.facebook.android:facebook-login:15.0.2'
這對我有用,我可以使用 facebook 成功登錄。
在構建之前,您可能還需要運行“flutter clean”命令。
請注意!我正在使用flutter_facebook_auth (^5.0.0 2) 而不是flutter_login_facebook。
更新!他們剛剛發布了 flutter_login_facebook 的 1.6.2 版,它解決了您的問題,因此進行“flutter pub upgrade”應該可以解決它。
uj5u.com熱心網友回復:
嘗試更改為實作 'com.facebook.android:facebook-login:12.3.0
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/523373.html
上一篇:未為型別“Future<Map<String,dynamic>>”定義運算子“[]”
下一篇:將int型別的資料從一個子Widget傳遞給Parent。動態函式(int)不能分配給引數型別void函式(字串)?
