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

Incompatible with AdMob #8

Open
RodolfoGS opened this issue Dec 25, 2019 · 1 comment
Open

Incompatible with AdMob #8

RodolfoGS opened this issue Dec 25, 2019 · 1 comment

Comments

@RodolfoGS
Copy link

Hi, I'm using AdMob in my project but I want to try MoPub and when I try to install the pod I get the error below.

[!] CocoaPods could not find compatible versions for pod "Google-Mobile-Ads-SDK":
  In snapshot (Podfile.lock):
    Google-Mobile-Ads-SDK (= 7.52.0, ~> 7.50)

  In Podfile:
    RNFBAdMob (from `../node_modules/@react-native-firebase/admob`) was resolved to 6.2.0, which depends on
      Firebase/AdMob (~> 6.13.0) was resolved to 6.13.0, which depends on
        Google-Mobile-Ads-SDK (~> 7.50)

    react-native-mopub-sdk (from `../node_modules/react-native-mopub-sdk`) was resolved to 1.0.0, which depends on
      react-native-mopub-sdk/AdMob (= 1.0.0) was resolved to 1.0.0, which depends on
        MoPub-AdMob-Adapters (~> 7.39.0.0) was resolved to 7.39.0.0, which depends on
          MoPub-AdMob-Adapters/Network (= 7.39.0.0) was resolved to 7.39.0.0, which depends on
            Google-Mobile-Ads-SDK (= 7.39.0)


You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * changed the constraints of dependency `Google-Mobile-Ads-SDK` inside your development pod `react-native-mopub-sdk`.
   You should run `pod update Google-Mobile-Ads-SDK` to apply changes you've made.

Do you know how to fix this?

Thanks!

@bougarfaoui
Copy link

either remove react-native-admob dependency or in node_module/react-native-mopub-sdk change 7.39.0.0 in ```ss.dependency 'MoPub-AdMob-Adapters', '~> 7.39.0.0'```` to your admob version.
you can get the right version from here https://github.com/mopub/mopub-ios-mediation/blob/master/AdMob/CHANGELOG.md

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

2 participants