Open Remstam opened 17 hours ago
Thanks for finding and investigating the issue. We had to add the Gradle file because of #3510. We will look at into fixing this in the upcoming release. You are right in that the Library does not depend specifically on 31 to get it to work. 34 would be more appropriate as GMA Android SDK also depends on API 34.
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
After upgrade to Google Mobile Ads Unity 9.2.1 Unity build fails with the following message:
I think this may happen because of new build.gradle was added for GoogleMobileAdsPlugin.androidlib in 9.2.1
If I additionally install Android SDK Platform 31 and Android SDK Build-Tools 30.0.3 for Unity 2021 then the build completes successfully. By default Unity 2021.3.42f1 has Platforms 33 and 34, and Build-Tools 32.0.0 (https://docs.unity3d.com/2021.3/Documentation/Manual/android-sdksetup.html)
Is it possible for Google Mobile Ads not to depend on those specific platform and build-tools versions?
Steps to reproduce:
Just build the app with default settings
Relevant Code:
This is from build.gradle from GoogleMobileAdsPlugin.androidlib which I think may be the cause of the issue: