Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EAS build no longer sees "android_app_id" for "react-native-google-mobile-ads" in "app.json". #2297

Closed
AntiXYZ opened this issue Mar 22, 2024 · 0 comments
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@AntiXYZ
Copy link

AntiXYZ commented Mar 22, 2024

Build/Submit details page URL

No response

Summary

I successfully build my project up to and including March 15th. Now I get an error that "android_app_id" was not found. There are no changes to app.json and app.config.ts

Managed or bare?

Managed

Environment

expo-env-info 1.2.0 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 20.11.0 - C:\Program Files\nodejs\node.EXE
npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: AI-223.8836.35.2231.11090377
npmPackages:
expo: ~50.0.14 => 50.0.14
react: 18.2.0 => 18.2.0
react-native: 0.73.6 => 0.73.6
Expo Workflow: managed

Error output

ERROR: react-native-google-mobile-ads requires an 'android_app_id' property inside a 'react-native-google-mobile-ads' key in your app.json.
No android_app_id property was found in this location. The native Google Mobile Ads SDK will crash on startup without it.

Reproducible demo or steps to reproduce from a blank project

My project has two files
app.json
{ "expo": { "name": "Test app (DEV)", "slug": "test-app-dev" }, "react-native-google-mobile-ads": { "android_app_id": "ca-app-pub-XXXX", "user_tracking_usage_description": "This identifier will be used to deliver personalized ads to you.", "sk_ad_network_items": [...]
app.config.ts
... const baseConfig = {...}; const getByAppEnv = () => {...}; export default ({config}: ConfigContext): ExpoConfig => { return merge(config, merge(baseConfig, getByAppEnv() ?? {})); };

Merging two files app.json and app.config.ts used to work fine, now it doesn't.

I tried merging both files and leaving only app.json, but still got the same error.

@AntiXYZ AntiXYZ added the needs review Issue is ready to be reviewed by a maintainer label Mar 22, 2024
@AntiXYZ AntiXYZ closed this as completed Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant