If I add the admob dependencies as shown above, the ads work but when I press the “sign in” button, the app crashes, bringing up the annoying message “Unfortunately, your app has stopped.”
If I remove the admob plugin and erase the admob dependencies from the manifest then the game doesn’t crash when I press the “sign in” button but if i remove the admob plugin and leave the admob dependencies in the manifest, the game still crashes.
I might be wrong but maybe the admob dependencies in the manifest are somehow clashing with the google play services. I tried this solution but got the exact same result.
I’ve been trying to work around this for hours but I just can’t seem to get admob to work with google play services without the game crashing.
After making an android build, you’ll find the generated manifest file in the StagingArea folder. You can navigate there by going to your projects root folder and clicking on the Temp folder.
Just drag & drop the “AndroidManifest.xml” to “Plugins/Android” in your assets folder and you should be able to edit it. Now when you make another build, it will use that manifest rather than generating a new one.