小编Rah*_*dam的帖子

React Native Google 移动广告不起作用。安装 npm add react-native-google-mobile-ads 后,我遇到了一些错误,请检查以下错误

安装npm add react-native-google-mobile-ads后出现错误。我在这里发布了错误,请检查,这里我添加了我的 android build.gradle 文件和应用程序级别 build.gradle 文件 *如何指定compileSdkVersion?*

1: Task failed with an exception.
        -----------
        * Where:
        Build file 'C:\Users\Admin\Desktop\ReactNative\Firebase\hellworldfirebaseeekkl\node_modules\react-native-google-mobile-ads\android\build.gradle' line: 75
        * What went wrong:
        A problem occurred evaluating project ':react-native-google-mobile-ads'.
        > Cannot get property 'googleMobileAdsJson' on extra properties extension as it does not exist
        * Try:
        > Run with --stacktrace option to get the stack trace.
        > Run with --info or --debug option to get more log output.
        > Run with --scan to get full …
Run Code Online (Sandbox Code Playgroud)

admob firebase react-native create-react-app

3
推荐指数
1
解决办法
3620
查看次数

标签 统计

admob ×1

create-react-app ×1

firebase ×1

react-native ×1