Home > Enterprise >  have problem in my flutter application , worked fine till yesterday but today i am getting build err
have problem in my flutter application , worked fine till yesterday but today i am getting build err

Time:11-01


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)

this is the error I get while running the application

i tried adding mavenCentral() in my build.gradle file as some of the suggestions out there but it didn't work for me. I also tried

 implementation 'com.facebook.android:facebook-android-sdk:latest.release'

but it's still the same

CodePudding user response:

I've got the same problem now and I found that there was an outage with a jcenter :

https://status.gradle.com/

CodePudding user response:

Hi in your build.gradle you should not add implementation "com.facebook.android:facebook-login:15.0.2" because this plugin already define that dependency for you.

ref: https://github.com/darwin-morocho/flutter-facebook-auth/issues/301#issuecomment-1296944186

Remove this line from build.gradle: implementation 'com.facebook.android:facebook-android-sdk:latest.release'

CodePudding user response:

as a temperary measure,

I suggest using this

allprojects {
    repositories {
        // Jcenter mirror
        maven { url "https://maven.aliyun.com/repository/jcenter" }
        // other repo
    }
}

or other mirror

  • Related