Closed darrylsk closed 4 years ago
The procedure outlined in the document "https://goog.gl/NAOOOI", referenced in the error message, is not intended for a xamarin app built with visual studio, so is not helpful. I've added a repo exhibiting the problem to github.
https://github.com/darrylsk/HouseMoneyTrader.git
The app_id has been removed from the repo. To test, add a valid app_id in MainActivity.cs and AndroidManifest.xml
The issue seems to have resolved. I did not change any code but received a Windows update and a Resharper update. Not sure if they are related. The build is still a little shaky and sometimes takes a couple of tries. Strange.
Xamarin.Android Version:
Q 10.0 - API 29
Operating System & Version:
Windows 10
Google Play Services Version
Describe your Issue
When attempting to use Xamarin.Firebase.Ads to create a banner ad in my application, the banner ad fails to display, and the log_cat contains an error indicating missing app_id (error details attached below)
Relevant information
Xamarin Forms application built using Visual Studio 2019 Enterprise v16.7.2 The application works in debug and release mode on both the emulator and on a real phone (Samsug Galaxy A51 running Q 10)
Relevant project settings from
*.csproj
file:Packages used:
Build settings (tools)
SDK
Xamarin.Android SDK version 11.0.2.0
or even better - links to the existing code:
Minimal Repro Code Sample
In MainActivity.cs
In AndroidManifest.xml:
Steps to Reproduce (with link to sample solution if possible):
Log_cat excerpt
09-03 19:18:52.547: E/FA(16300): GoogleService failed to initialize, status: 10, Missing google app id value from from string resources with name google_app_id. 09-03 19:18:52.549: I/FA(16300): App measurement is starting up, version: 14711 09-03 19:18:52.549: I/FA(16300): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE 09-03 19:18:52.549: I/FA(16300): To enable faster debug mode event logging run: 09-03 19:18:52.549: I/FA(16300): adb shell setprop debug.firebase.analytics.app com.companyname.originallist 09-03 19:18:52.554: E/FA(16300): Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI 09-03 19:18:52.559: E/FA(16300): Uploading is not possible. App measurement disabled 09-03 19:18:52.657: D/Mono(16300): DllImport searching in: '__Internal' ('(null)'). 09-03 19:18:52.657: D/Mono(16300): Searching for 'java_interop_jnienv_get_object_field'.
Include any relevant Exception Stack traces, build logs, adb logs:
Android_logcat_20200903-02.txt