If ads are not showing on a new build and you encounter this exception in your runtime device logs:
AndroidJavaException: java.lang.NoSuchMethodError: no static method with name=’initialize’
The SDK and adapter dependencies have resolved to versions that are not supported by the current Mediation package. To resolve this exception:
- In the Unity Editor, open your project and go to Project Settings > Player > Publish Settings > Custom Main Gradle Template and ensure the Custom Main Gradle Template checkbox is enabled.
- Then, go to the Project tab and navigate to Assets > PlayServicesResolver > Android Resolver > Force Resolve.
Now Gradle should fetch dependencies that are suitable for your current package.
For more information, see documentation on Unity Mediation.