Hello everyone.
I believe the Admob example has a bug.
To reproduce, I downloaded b4a.
www.b4x.com
I followed all the steps correctly.
I followed this tutorial.
www.b4x.com
However, the app never starts. It crashes right at the start, and it doesn't even show anything in the log, so there's no time.
The crash seems to happen when i declare in the manifest:
I created a new project, just checked the firebaseadmob2 lib, and added the code above to the manifest, and the problem already occurs.
I'm using a Samsung S25 Ultra. Android 15.
jdk-19.0.2
platforms\android-36\android.jar
Debug
B4A 13.40
I believe the Admob example has a bug.
To reproduce, I downloaded b4a.
B4A – The simple way to develop native Android apps
B4A includes all the features needed to quickly develop any type of Android app. B4A is used by tens of thousands of developers from all over the world, including companies such as NASA, HP, IBM and others.
I followed this tutorial.
FirebaseAdMob2 - Google Mobile Ads SDK v20+
Edit: The underlying Google SDK is compatible with Android 8+ (api 26+). It is recommended to set minSdkVersion in the manifest editor to 26. This is a wrapper for Google Mobile Ads v20+ SDK. It is a modified version of FirebaseAdmob (1). This library works with Google Mobile Ads v20+. The...

However, the app never starts. It crashes right at the start, and it doesn't even show anything in the log, so there's no time.
The crash seems to happen when i declare in the manifest:
B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
AddReplacement($ADMOB_APP_ID$, ca-app-pub-12673333333~67613333333)
I created a new project, just checked the firebaseadmob2 lib, and added the code above to the manifest, and the problem already occurs.
I'm using a Samsung S25 Ultra. Android 15.
jdk-19.0.2
platforms\android-36\android.jar
Debug
B4A 13.40