Android Question Error implement the FirebaseAdMob

Discussion in 'Android Questions' started by Gktech, Mar 7, 2018.

  1. Gktech

    Gktech Member Licensed User

    When I implement the admob firebase library I am getting the following error:
    Code:
    java.lang.IllegalStateException: A required meta-data tag in your app's AndroidManifest.xml does not exist.  You must have the following declaration within the <application> element:     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
    What can it be?

    I follow the tutorial:
    reference: https://www.b4x.com/android/forum/t...b-ads-integrated-with-firebase-backend.67710/
     
  2. DonManfred

    DonManfred Expert Licensed User

  3. Gktech

    Gktech Member Licensed User

    Thanks for the answer,
    I follow the two tutorials, but I keep resorting to the error:
    My manifest-code:
    Code:
    '************ Firebase Ads ************
    AddApplicationText(
      <
    activity
      android:name=
    "com.google.android.gms.ads.AdActivity"
      android:configChanges=
    "keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
      android:theme=
    "@android:style/Theme.Translucent" />
      <
    activity android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity"
      android:theme=
    "@style/Theme.IAPTheme"/>
    )
    '************ Firebase Ads (end) ************
     
  4. DonManfred

    DonManfred Expert Licensed User

    The Manifest is TOTALLY INCOMPLETE!

    Go again over the Tutorial!!! This time read it carefully and add all needed snippets.
     
    Gktech and asales like this.
  5. Gktech

    Gktech Member Licensed User

    I have now added the Google Service portion now it no longer displays the error, and the application worked.
    thank you!
     
  6. asales

    asales Well-Known Member Licensed User

    Click on "Like" if the answer helped you and to show it to him. :)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice