googlesamples / googlesamples/unity-jar-resolver

[FR] Improve Android Resolver resolution and logging when conflicts occur without mainTemplate.gradle

Open
#444 19 comments 0 reactions 0 assignees View on GitHub
needs-info type: feature request
Dominant language
C#
Stars
1.5k
Forks
371
Avg merge
14h 21m
Merged PRs (30d)
3

Description

### [REQUIRED] Please fill in the following fields:

* Unity editor version: 2020.3.6f1
* External Dependency Manager version: 1.2.165
* Source you installed EDM4U: .unitypackage
* Features in External Dependency Manager in use: Android
* Plugins SDK in use: Firebase, Admob and Facebook Audience Network
* Platform you are using the Unity editor on: Mac

### [REQUIRED] Please describe the question here:

I'm a long time user of Jar Resolver (since 2018 or so), but never had to fiddle or understand its inner workings as it always worked fine for me. I always only used Google plugins (Firebase and Admob) and had no issues.

Recently I started using Facebook Audience Network but since a couple months I am having a problem which took me a while to find the root cause. This problem was causing a crash, after a while of debugging I noticed it was using a newer audience-network-sdk (6.5.0) than I was expecting (6.2.0), and for some reason this newer version has issues that are causing the crash that are unrelated to this post/repo.
After more debugging I found out that EDM is changing the version to the latest version, and after narrowing it down a bit more I saw on the huge log that it says that there is a conflict, but I fail to understand what is this conflict, or how to solve it:

com.facebook.android:audience-network-sdk conflicting due to package(s):
- com.facebook.android:audience-network-sdk:6.2.0
- com.google.ads.mediation:facebook:6.2.0.0/com.facebook.android:audience-network-sdk:6.2.0

Then after a few resolve iterations it changes the version to "6+" and that's what causes the SDK version to change to 6.5.0 (which currently is the latest version). But the names are exactly the same (1st line "com.facebook.android:audience-network-sdk:6.2.0" vs the right side of the slash), I dont understand the root cause of this conflict.

There's a second conflict that follows exactly the same pattern:
com.google.android.gms:play-services-ads conflicting due to package(s):
- com.google.ads.mediation:facebook:6.2.0.0/com.google.android.gms:play-services-ads:19.5.0
- com.google.android.gms:play-services-ads:19.5.0

Any help is appreciated, thanks in advance!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.