Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find any matches for com.facebook.android:audience-network-sdk:6.+ #144

Open
joshua750 opened this issue Mar 8, 2023 · 5 comments

Comments

@joshua750
Copy link

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.

BUILD FAILED in 45s
Exception: Gradle task assembleDebug failed with exit code 1

@Kanwarpalsingh1986
Copy link

Kanwarpalsingh1986 commented Mar 8, 2023

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'
}
}
}

@joshua750
Copy link
Author

is there any other way to show facebook ads in flutter app ?

@KuldeepVagadiya
Copy link

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.+'

@Kanwarpalsingh1986
Copy link

@KuldeepVagadiya not working

@joshua750
Copy link
Author

@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

6ac2S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants