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 find any matches for com.facebook.android:audience-network-sdk:6.+ #144

Open joshua750 opened 1 year ago

joshua750 commented 1 year ago

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.

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

Kanwarpalsingh1986 commented 1 year ago

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 commented 1 year ago

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

KuldeepVagadiya commented 1 year ago

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 commented 1 year ago

@KuldeepVagadiya not working

joshua750 commented 1 year ago

@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