Google AdMob for react native

拟墨画扇 提交于 2019-12-23 06:57:34

问题


After installing ad mob (installed from this) and link it to my react native project, my app crash. What is the best way to add google ad mob with the latest react native version?

P.s. can you show me all of the steps to get a working admob application?


回答1:


Do what that link said you to do.

Then just complete another small step

Goto

node-module/react-native-admob/android/build.gradle file replace the line

compile 'com.google.android.gms:play-services-ads:+'

with the following line

compile 'com.google.android.gms:play-services-ads:16.0.0'


来源:https://stackoverflow.com/questions/53125079/google-admob-for-react-native

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!