Android Question Error implement the FirebaseAdMob

Gktech

Member
Licensed User
When I implement the admob firebase library I am getting the following error:
B4X:
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/
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Gktech

Member
Licensed User
Thanks for the answer,
I follow the two tutorials, but I keep resorting to the error:
My manifest-code:
B4X:
'************ 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) ************
 
Upvote 0

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!
 
Upvote 0
Top