Hi,
I'm using admob for almost a year now, but now and then keeps breaking for no obvious reson. It has been working on the app that i am developing, but at some point in the last build it started throwing null exception without me doing anything to the code or the plugin.
This is the error that is giving me when i try to run this line of code:
-my line of code: -"MobileAds.Initialize("ca-app-pub-3940256099942544~3347511713");"
-error: - "AndroidPlayer([email protected]:34999) ADMOB -> Eror when initialize mobile ads: The type initializer for 'GoogleMobileAds.Api.MobileAds' threw an exception."
I tried deleting the current sdk version implemented in the project, and using the latested one, that did not work, keeps doing the same thing.
Could this be something from the android manifest file? If so, let me know and i will attach the file here.
Also, i've seen that in the documentation, in the example, the banner does not need "MobileAds.Initiliaze" to work, and indeed before this error it did work, but right now when i try to initialize the banner with or without the respective line of code, this error pops up
"Object reference not set to an instance of an object".
Please give a solution to this, there were countless of times admob did not work all of a sudden, and then worked again for no obvoius reason. What should i look for?
I am facing same problem and working on that issue from past 30 hours. Still unable to resolve that issue. Did you find any solution? If yes, please share
Most helpful comment