问题
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