androidunity-game-enginebuildcompiler-errorsadmob

Execution failed for task ':launcher:mapReleaseSourceSetPaths' - Unity 6


I am trying to build my Unity mobile game to Android. And when building the gameI got this error:

Execution failed for task ':launcher:mapReleaseSourceSetPaths'.

Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'. Failed to transform unityads-adapter-4.3.56.aar (com.unity3d.ads-mediation:unityads-adapter:4.3.56) to match attributes {artifactType=android-res, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. > Could not find unityads-adapter-4.3.56.jar (com.unity3d.ads-mediation:unityads-adapter:4.3.56). Searched in the following locations: https://repo.maven.apache.org/maven2/com/unity3d/ads-mediation/unityads-adapter/4.3.56/unityads-adapter-4.3.56.aar https://repo.maven.apache.org/maven2/com/unity3d/ads-mediation/unityads-adapter/4.3.56/unityads-adapter-4.3.56.jar

Appearently, what happens is that some Unity adapters file cannot match certain attributes. I’ve been trying to do many of the things the AI told me to do, but it never quite worked.

Does anyone know what is happening?

My third-party SDK’s are:

Branch.io Firebase AdMob

I tried asking the AI for help, so the build error didn't happen anymore, but nothing happened.


Solution

  • I don't know what happend to this version, but the aar file doesn't exist, it is even skipped in the changelog, so try using version 4.3.55 or 4.3.58.