ammarahm-ed/react-native-admob-native-ads

Android does not compile

davidarnaub7 opened this issue · 5 comments

..node_modules/react-native-admob-native-ads/android/src/main/java/com/ammarahmed/rnadmob/nativeads/Utils.java:11: error: cannot find symbol
import com.google.ads.mediation.facebook.FacebookAdapter;
^
symbol: class FacebookAdapter
location: package com.google.ads.mediation.facebook

The app compiles correctly for IOS. But in Android this message appears.

Any idea?

I have the same error since I udpdated to RN 0.71.0. In 0.70.4 it worked.

Run following command in your project directory:

sed -i.backup 's/com.google.ads.mediation:facebook:6.+/com.google.ads.mediation:facebook:6.11.0.0+/g' node_modules/react-native-admob-native-ads/android/build.gradle

Please see the comment in this pull request to see if it resolves your issue.

sed -i.backup 's/com.google.ads.mediation:facebook:6.+/com.google.ads.mediation:facebook:6.11.0.0+/g' node_modules/react-native-admob-native-ads/android/build.gradle

Working fine with this solution, Thanks @haresh4d

This has been fixed in v0.6.3. Please update.