-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update 9.2.1 forces to install Android SDK platform 31 and Android SDK Build Tools 30.0.3 #3628
Comments
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. |
Does not specifying specific targetSdkVersion of 31 break compatibility with Unity player settings? What if the project targets 34 or 35? |
the same issue with Google Mobile Ads Unity plugin version 9.3.0 and Unity 2021.3.45f1 |
Yeah we didn't update the build.gradle file. We will look to do so in the upcoming 9.4.0 release. |
Update manually build.gradle and project.properties to API 34 in GoogleMobileAdsPlugin.androidlib, but the same problem still exists |
Confirming this solution is not working for my project too. (Google Mobile Ads Unity plugin version 9.3.0 and Unity 2021.3.43f1) Here is the error:
After manually changing build.gradle and setting target API 34, I get the second line of the error above like this:
Have you found any solution or workground for this problem? |
After we do your suggestion we continue to get this exception:
Maybe something else we need to change somewhere? Is this the correct edited build.gradle you suggest?
What about project.properties file? Don't we need to change the target here too?
|
Any updates for this issue? Can someone help me to use the plugin v9.3.0 and build for Android normally? You have released a plugin with a bug and keep us waiting for the version v9.4.0 without any release date. Does anyone care about the reputation of this product? Millions of developers use it. |
Hope they will fix the issue in the upcoming update. |
Thank you for response. Did you find some workround to build your project? |
any other fixes for this? or do i have to install those ? |
@dcosmin-97 It worked! Thank you!! |
Same Build Error: Admob 9.3.0 Error: CommandInvokationFailure: Gradle build failed.
Using Android SDK: C:\Program Files\Unity\Hub\Editor\2022.3.29f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK |
Still no fix? |
no, unfortunately |
Manually set buildtool and compile sdk works for me. If you want it to depend on Unity's settings then set some global variables in main graddle and use it in build.graddle build.graddle
project.properties removes "target=android-31" |
[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:
The text was updated successfully, but these errors were encountered: