Google AdMob,用于原生响应 [英] Google AdMob for react native

查看:88
本文介绍了Google AdMob,用于原生响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装了广告暴民(从此安装)并将其链接到我的反应本机项目,我的应用程序崩溃。
用最新的react native版本添加google ad mob的最佳方法是什么?



P.s。

解决方案

请按照以下说明操作: / p>

然后只需完成另一步



转到



node-module / react-native-admob / android / build.gradle文件替换行

  compile'c​​om.google。 android.gms:play-services-ads:+'

并带有以下行

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


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?

解决方案

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'

这篇关于Google AdMob,用于原生响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆