Skip to content

Missing google_app_id #1524

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

Closed
psyanite opened this issue Dec 1, 2019 · 2 comments
Closed

Missing google_app_id #1524

psyanite opened this issue Dec 1, 2019 · 2 comments
Labels
type: bug Something isn't working

Comments

@psyanite
Copy link

psyanite commented Dec 1, 2019

Describe the bug
I am no longer able to see ads after I upgraded to AndroidX and now running stable Flutter. :(

I've noticed that we now have 3 AndroidManifes.xml files? I just put the google app id inside the one in src/main. I am also trying to run test ad but is no longer working anymore.
Error:
Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI

Thanks for reading my report, appreciate any help provided.

Android Manifest

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.burntoast.nameme">
    <!-- io.flutter.app.FlutterApplication is an android.app.Application that
         calls FlutterMain.startInitialization(this); in its onCreate method.
         In most cases you can leave this as-is, but you if you want to provide
         additional functionality it is fine to subclass or reimplement
         FlutterApplication and put your custom class here. -->
    <application
        android:name="io.flutter.app.FlutterApplication"
        android:label="NameMe"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- This keeps the window background of the activity showing
                 until Flutter renders its first frame. It can be removed if
                 there is no splash screen (such as the default splash screen
                 defined in @style/LaunchTheme). -->
            <meta-data
                    android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
                    android:value="true" />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

        <!-- Google Ads Admob configuration -->
        <meta-data
                android:name="com.google.android.gms.ads.APPLICATION_ID"
                android:value="ca-app-pub-6524279756456110~1563270059"/>

    </application>
</manifest>

Flutter run -v

flutter run v.txt

Flutter doctor

@psyanite psyanite added the type: bug Something isn't working label Dec 1, 2019
@psyanite
Copy link
Author

psyanite commented Dec 1, 2019

Fixed, missing

apply plugin: 'com.google.gms.google-services'

from /app/build.gradle.

@psyanite psyanite closed this as completed Dec 1, 2019
@korenzerah
Copy link

It happened to me also.
The reason I missed adding the plugin is that in the firebase_admob README.md, they say to do the steps 1-3.1:
image
While adding the plugin to the build.gradle file is mentioned in step 3.2.
The README.md should be updated or there is something I didn't understand.

@firebase firebase locked and limited conversation to collaborators Aug 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants