Using expo managed workflow, sdk 46, installed the package using: yarn add react-native-google-mobile-ads.
building with eas, command used: eas build --profile development -p android
error when building:
[stderr] FAILURE: Build completed with 2 failures.
[stderr] 1: Task failed with an exception.
[stderr] -----------
[stderr] * Where:
[stderr] Build file '/home/expo/workingdir/build/node_modules/react-native-google-mobile-ads/android/build.gradle' line: 75
[stderr] * What went wrong:
[stderr] A problem occurred evaluating project ':react-native-google-mobile-ads'.
[stderr] > Cannot get property 'googleMobileAdsJson' on extra properties extension as it does not exist
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] 2: Task failed with an exception.
[stderr] -----------
[stderr] * What went wrong:
[stderr] A problem occurred configuring project ':react-native-google-mobile-ads'.
[stderr] > compileSdkVersion is not specified. Please add it to build.gradle
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 2m 33s
Using expo managed workflow, sdk 46, installed the package using:
yarn add react-native-google-mobile-ads
.building with eas, command used:
eas build --profile development -p android
error when building:
app.json: