-
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
play-services-ads:22.4.0 issue #2930
Comments
Hi @dcosmin-97 Confirmed the issue, thank you. |
Not work with me, untiy Unity version: 2021.3.29. |
I can try to help you, what other SDK and mediations do you have in the game? |
Unity version: 2021.3.30f1 I have those SDKs :
And the issue it was
|
Well, I know that Unity ADS has some issues when you resolve. I have opened a separate issue for it. |
ok it's work ,
|
Glad it is working, we are still looking into this issue. |
Hi @NVentimiglia @dcosmin-97, I'm facing this issue as well, however after deleting the suggested libraries, in the error logs we still see the following error:
Could it have something to do with other sdks depending on that specific version of play-services-ads-lite-22.4.0? E.g AppsFlyer forcing it to revert to that version of play-services? |
@NVentimiglia > Confirmed the issue I'm also facing this AAPT failure after updating AppLovin mediation adapters in Unity project.
We are using Gradle 6.5 with Gradle plugin 4.1.0: classpath 'com.android.tools.build:gradle:4.1.0' Minimum SDK version (API level): 22 Please let us know when you fix this! |
I have the same issue also, help please, this is important issue basically you cannot integrate Google Admob in any Unity App
|
Thanks for the update, we are still looking into this issue and hope to solve this soon. |
Hello! |
No ETA at the moment, but I have flagged this issue as high priority. |
Changes to androidPackage spec="com.google.android.gms:play-services-ads:[22.3.0]" does not work anymore. |
We're using Applovin MAX plugin for unity, version 5.1.4
Note: iOS builds were fine. After a quite painful investigation through sdk and mediations changelogs and testing different changes on their own, it appeared that updating Google ads mediation network was the cause. After that, we've found this issue about the latest 22.4.0 release for Android Google ads and corresponding 22.4.0.0 update for Google Ads Android mediation in Applovin MAX. So, as a workaround to preserve latest changes in iOS mediation and still have near-to-latest changes on Android, we've manually edited corresponding mediation dependencies file
Useful links: |
Have you tried a different Gradle / Gradle plugin other than the default one from Unity? I think this might be the cause. |
@dcosmin-97, no, just skipped the "broken" 22.4.0 version by sticking to the previous 22.3.0 until the fix will come |
@chakaramba I spent all day looking at this and this is the solution that worked! Thank you! I wish I had found it hours ago 😅 |
hi, the following works for me with Unity 2021.3.27f1, AppLovin sdk version 11.11.3, Admob mediation version 22.4.0 / Admob sdk version 8.5.2
|
how to update unity Gradle to 6.7.1? |
what is the version of AppLovin MAX SDK? |
@BrushkouMatvey, MAX SDK v11.11.3, same as it was for Plugin v 5.11.3 Though, this version is still off the changelog for whatever the reason :/ |
PiperOrigin-RevId: 577025460
We published some documentation at https://developers.google.com/admob/unity/gradle with details on how to upgrade Gradle. For folks still having issues, we'd appreciate feedback on whether these steps work for you. |
Hey, I have noticed the documentation fix states that this should be applied when using target API 33 or higher, this seems incorrect as you should be able to build without issues when targeting API 33. (I have corroborated this with older Unity versions such as 2020.3.37f1). Is this fix/requirement something that will be required for future versions, let's say 22.5.0? 🤔 The proposed fix also does not seem compatible with 2020.3.37f1, following the steps proposed on the document we keep encountering the same set of issues. From our end we have documented on a video all the require steps to Export as an Android Studio project and upgrade to Gradle higher versions (tested with 8.1.2), using the AGP Upgrade tool. This seems to be the only way to build for API 34 on 2020.3+. For quick reference, we implement GMA through native adapters for our Unity Mediation SDK. 😓 |
why is this closed? Pinning a dependency is a workaround, not a fix. |
PiperOrigin-RevId: 577025460
PiperOrigin-RevId: 577025460
…n collision. PiperOrigin-RevId: 577025460
…n collision. PiperOrigin-RevId: 577025460
…n collision. PiperOrigin-RevId: 582112867
PiperOrigin-RevId: 582018315
PiperOrigin-RevId: 582018315
PiperOrigin-RevId: 582934837
Hello everyone, We have launched v8.6.0 of the Google Mobile Ads for Unity Plugin. This is an important patch release that resolves compatibility issues between older AGP version 4.0.1(Unity editors below 2022.3) and Android GMA SDKv 22.4 and above. Previously, we have published this workaround instructing you on how to upgrade Unity's Gradle installation. While this option is still recommended, this additional step is no longer required with and after v8.6.0 of the Plugin In Google Mobile Ads Settings you will see two new options; "Enable kotlix.coroutines packaging options." and "Remove property tag from GMA Android SDK.". Make sure both of these options are enabled and your build should work as expected. Lastly, if you see any issues with this release, please report the problem here, and I will be happy to help you out. Nick |
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34 This Android Gradle plugin (7.3.1) was tested up to compileSdk = 33 This warning can be suppressed by adding |
Hey @NVentimiglia I'm running into this #3042. Any insights ? |
I used gradle 6.7.1 and custom baseProjectTemplate as described in the workaround.
|
Another work around is to use EDM4U dependency resolution instead of Custom Main Gradle Template and |
I'm using custom templates in my project cause of other libraries. Also I use EDM4U and update resolution every time after adding new sdk. But I still have the error described above. |
BTW it works in Unity 2022.3.x (building for Android SDK 34 with Admob 8.6.0) |
Closing this issue as fixed. Please feel free to open a new issue if you run into gradle problems. |
It doesn't fixed. I tried it now and still have this error upon build on Unity 2021.3.34: 1: Task failed with an exception.
2: Task failed with an exception.
|
Thanks so much ! |
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
If you force resolve, you will get
Assets/Plugins/Android/com.google.android.gms.play-services-ads-22.4.0.aar
Assets/Plugins/Android/com.google.android.gms.play-services-ads-base-22.4.0.aar
Assets/Plugins/Android/com.google.android.gms.play-services-ads-identifier-18.0.0.aar
Assets/Plugins/Android/com.google.android.gms.play-services-ads-lite-22.4.0.aar
Assets/Plugins/Android/com.google.android.gms.play-services-appset-16.0.1.aar
Assets/Plugins/Android/com.google.android.gms.play-services-base-18.2.0.aar
Assets/Plugins/Android/com.google.android.gms.play-services-basement-18.1.0.aar
Assets/Plugins/Android/com.google.android.gms.play-services-measurement-21.3.0.aar
Assets/Plugins/Android/com.google.android.gms.play-services-measurement-api-21.3.0.aar
Assets/Plugins/Android/com.google.android.gms.play-services-measurement-base-21.3.0.aar
Assets/Plugins/Android/com.google.android.gms.play-services-measurement-impl-21.3.0.aar
Assets/Plugins/Android/com.google.android.gms.play-services-measurement-sdk-21.3.0.aar
Assets/Plugins/Android/com.google.android.gms.play-services-measurement-sdk-api-21.3.0.aar
The resolve will complete without errors.
The issue when you try to build:
FAILURE: Build completed with 2 failures.
How to fix:
Assets\GoogleMobileAds\Editor\GoogleMobileAdsDependencies.xml
Change to:
androidPackage spec="com.google.android.gms:play-services-ads:[22.3.0]"
The text was updated successfully, but these errors were encountered: