Search code examples
unity-game-enginemobile-ad-mediationunityads

Unity Ads with Mediation causes Android builds to fail


When I install "Advertisement with Mediation (ver. 1.5.0)" in a project, I can no longer build for Android.

This applies to new, empty projects as well as legacy projects.

The following error message appears: “…It looks like there are a few files missing from Assets\Plugins\Android. You can fix this by resolving dependencies again…”

When I click Resolve, the build process starts right away and hangs. I have to force quit Unity. If I don’t click Resolve, the build hangs up on building the first scene in the project and I have to force quit.

Nothing at all happens via Assets -> Mobile Dependency Resolver -> Android Resolver -> Force Resolver.

I am using Unity 2021.3.13.

Does anyone know what is occurring and how to fix it?

I attempted to resolve as stated in the pop up and it causes Unity to hang. I attempted to resolve beforehand and it appears to do nothing.

I attempted to delete my library folder and it had no effect on reimport.

I attempted to export the project, and the project hangs.


Solution

  • Advertisement with Mediation is not being properly supported by Unity anymore post IronSource merger. They suggest using Ironsource’s mediation platform. We use AdMob given I already know how to deal with its obvious bugs.