Search Unity

Resolved Removal of Banner Ads because the Android Build Fails with Banner Ads

Discussion in 'Unity Mediation' started by Davidbillmanoy, Jan 12, 2023.

  1. Davidbillmanoy

    Davidbillmanoy

    Joined:
    Jul 7, 2014
    Posts:
    120
    Hello! I'm trying to build my Android app, but with Banner Ads, the build failed. Unless there's a fix for Banner Ads build, I want to remove the Banner Ads completely, because that will fix the issue for the time being. Anyone can help me with that?

    Edit: I found it in <Project Name>\Library\PackageCache\com.unity.services.mediation@1.0.5\Runtime\Plugins\Android removed everything in the BannerAd.java, then tried to build my Android app again, and then the build is successful. Now, I'm going to find out what's wrong with the BannerAd.java

    Below is the cause of build failure.
     

    Attached Files:

    Last edited: Jan 13, 2023
  2. jcGrenier

    jcGrenier

    Unity Technologies

    Joined:
    Feb 23, 2021
    Posts:
    145
    It seems like you failed to properly resolve dependencies, and the error is due to not finding the expected classes in the Mediation SDK.
    Depending on your setup, I would recommend clearing your dependencies cache/libs, resolving the dependencies and making sure there are no errors in the console.