1

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.

1 Answer 1

0

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you very much. What I did is to change the mainTemplate.gradle file. More specifically the com.unity3d.ads-mediation:unityads-adapter to version 4.3.58 and com.unity3d.ads:unity-ads to version 4.16.0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.