AppLovin / AppLovin-MAX-Unity-Plugin

127 stars 35 forks source link

Unable to build Target API Level 34 #404

Closed Exotic308 closed 3 months ago

Exotic308 commented 3 months ago

MAX Plugin Version

5.11.3

Unity Version

2021.3.36f1

Device/Platform Info

Editor

Current Behavior

Unable to build with following error message:

Execution failed for task ':launcher:processReleaseResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-4.0.1-6197926-osx Daemon #1: Unexpected error during link, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.

Expected Behavior

Successful build

How to Reproduce

In Project Settings -> Player, change "Target API Level" to "API Level 34". Build works properly with API Level 33. Make sure you have "DT Exchange" or "Moloco" mediated network. Without them build is also working fine.

Additional Info

This is important because starting August 31, 2024, Google will stop accepting builds with target API level less than 34.

Exotic308 commented 3 months ago

For future reference, solved by using solution from here https://github.com/firebase/firebase-unity-sdk/issues/1035#issuecomment-2149471713