Open huzhimingjob opened 4 months ago
I will jump back here on this thread to avoid creating another entry.
We are experiencing some Gradle Build failures.
We found an issue with com.applovin.mediation:google-adapter
version 22.4.0.0
❌ - version 22.3.0.0
works fine. ✅
Also found in this other thread in googleads-mobile-unity.
This was our workaround in Assets/MaxSdk/Mediation/Google/Editor/Dependencies.xml
<?xml version="1.0" encoding="utf-8"?>
<dependencies>
<androidPackages>
<!-- Ensure that Resolver doesn't inadvertently pull the latest Play Services Ads' SDK that we haven't certified against. -->
<androidPackage spec="com.applovin.mediation:google-adapter:[22.3.0.0]" />
</androidPackages>
<iosPods>
<iosPod name="AppLovinMediationGoogleAdapter" version="11.0.1.0" />
</iosPods>
</dependencies>
MAX Plugin Version
6.1.1
Unity Version
2021.3.33f1
Device/Platform Info
Android
Current Behavior Gradle fail.
Expected Behavior Gradle successful.
version 22.6.0.1
initially also failed.
It starts from this error on our Unity Build log
AndroidManifest.xml:90:9-92:62: AAPT: error: unexpected element <property> found in <manifest><application>.
This was the unexpected entry on our AndroidManifest.xml
<property
android:name="android.adservices.AD_SERVICES_CONFIG"
android:resource="@xml/gma_ad_services_config" />
</application>
On Google app manifest documentation that 31
(we are using 33
) so it should work.
I'm having the same error. It's in an infinite loop trying to resolve countlessly.
Minimum API: 28 Target API: 32 Gradle 7.2
MAX Plugin Version
6.1.2
Unity Version
2023.3.33
Device/Platform Info
Android
Current Behavior
Gradle fail.
Expected Behavior
Gradle successful.
How to Reproduce
Change unity plugin version 4.9.2.1 to 4.9.1.0 will fix the problem.
Additional Info
Gradle failed to fetch dependencies.
Failed to run 'E:\WZ\WangZhuan\slot-game\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "E:\WZ\WangZhuan\slot-game\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=C:/Program Files/Unity/Hub/Editor/2021.3.33f1c1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=E:\WZ\WangZhuan\slot-game\Assets\Plugins\Android" "-PMAVEN_REPOS=" "-PPACKAGES_TO_COPY=com.applovin:applovin-sdk:12.1.0;com.applovin.mediation:unityads-adapter:4.9.2.1" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=4.0.1"' stdout: