dreamsoftin / facebook_audience_network

Flutter Facebook Audience Network
https://pub.dartlang.org/packages/facebook_audience_network/
MIT License
154 stars 93 forks source link

Could not resolve com.facebook.android:audience-network-sdk:6.+. Received status code 502 from server: Bad Gateway #130

Closed pradeepsthapa closed 2 years ago

pradeepsthapa commented 2 years ago

Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not resolve com.facebook.android:audience-network-sdk:6.+. Required by: project :app > project :facebook_audience_network Failed to list versions for com.facebook.android:audience-network-sdk. Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/android/audience-network-sdk/maven-metadata.xml. Could not HEAD 'https://jcenter.bintray.com/com/facebook/android/audience-network-sdk/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

damonaskavio commented 2 years ago

Specifying a specific version for the SDK seems to have done the trick for me

app/build.gradle

dependencies {
     ...

    constraints {
        implementation('com.facebook.android:audience-network-sdk') {
            version {
                strictly '6.8.0'
            }
    }
  }
}
yutikgithub commented 1 year ago

not work in my project.

yutikgithub commented 1 year ago

any other solution?