Closed cephalo3 closed 5 months ago
Hi @cephalo3
It sounds like the google mobile ads and firebase are both pulling in the UMP SDK.
The solution here is to modify the Google Mobile Ads Dependency file to make sure that both SDKs are pulling in the same version of the UMP SDK.
Alternatively, you can try using gradle resolution.
@cephalo3
I was unable to see any conflict when installing Firebase Analytics alongside Google Mobile Ads.
Can you let me know what firebase plugin which shows this problem?
Ok, I finally after months solved this problem. Firebase puts the library in a weird spot in the assets folder, and EDM4U doesn't catch it. I solved the problem by merely deleting it. It is an aar file. I don't have access to the exact name at the moment. I'm not sure which Firebase package contributes that library, but I am using Firestore, Auth, Functions and Messaging.
To find this, I had to remove the package manager version of Firebase and do unitypackage instead hoping to match it with googlemobileads. That alone didn't fix the problem but I happened to catch the filename while browsing the assets folder.
EDIT: never mind. Now I am getting a missing class. I have tried gradle resolution in Android Studio and I can't make heads or tails of it and frankly, I can't even understand the problem I'm trying to solve. Google software compatibility with Unity is a real dumpster fire right now.
EDIT2: Ok, the last thing was a proguard issue. I need a custom progaurd file for another library I use, and google ads needs some stuff in there too, so it's unrelated to my original problem. I saw an ad! Hallelujah.
Glad you fixed it. Some of these Android issues can be confusing to diagnose.
Step 0: Are you in the right place?
For general technical questions, or help with project-specific issues like setting up ads in your app, reach out to our support team on the Developer Forum.
For assistance with your AdMob account, reach out to AdMob Support.
For feedback on our documentation, send your feedback by pressing the Send Feedback button at the top right of the documentation page you are on.
For issues related to the code in this repository, continue filing this GitHub issue.
Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
What happened? How can we make the problem occur? This could be a description, log/console output, etc.
Please share a downloadable sample project that reproduces the bug, if available. This greatly helps us to diagnose and fix the issue faster.
Relevant Code: