facebook_audience_network
facebook_audience_network copied to clipboard
Could not find any matches for com.facebook.android:audience-network-sdk:6.+
Hello it was working fine recently i got this error please update this plugin
Launching lib/main.dart on RMX2020 in debug mode... Running Gradle task 'assembleDebug'...
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 find any matches for com.facebook.android:audience-network-sdk:6.+ as no versions of com.facebook.android:audience-network-sdk are available. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/facebook/android/audience-network-sdk/maven-metadata.xml - https://repo.maven.apache.org/maven2/com/facebook/android/audience-network-sdk/maven-metadata.xml - https://repo.maven.apache.org/maven2/com/facebook/android/audience-network-sdk/6.13.6/audience-network-sdk-6.13.6.pom - https://storage.googleapis.com/download.flutter.io/com/facebook/android/audience-network-sdk/maven-metadata.xml - https://jcenter.bintray.com/com/facebook/android/audience-network-sdk/maven-metadata.xml - https://jcenter.bintray.com/com/facebook/android/audience-network-sdk/6.13.6/audience-network-sdk-6.13.6.pom Required by: project :app > project :facebook_audience_network
- 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 45s Exception: Gradle task assembleDebug failed with exit code 1
Exactly same issue here also, tried with below solution but did not worked as well
make below change in app/build.gradle constraints { implementation('com.facebook.android:audience-network-sdk') { version { strictly '6.8.0' } } }
is there any other way to show facebook ads in flutter app ?
One solution worked for me
I have changed the version from 6 to 5 and it's worked for me.
try below dependency
implementation 'com.facebook.android:audience-network-sdk:5.+'
@KuldeepVagadiya not working
@KuldeepVagadiya your solution not supported null safety and also not working
here someone give me this solution on stack-overflow please check maybe its help for us. In pubspec.yaml depend on https://github.com/azmasamy/facebook_audience_network.git instead of facebook_audience_network: ^1.0.1
facebook_audience_network: ^1.0.1
facebook_audience_network: git: url: https://github.com/azmasamy/facebook_audience_network.git ref: master