yandexmobile / metrica-plugin-unity

Unity plugin for Yandex AppMetrica SDK
38 stars 18 forks source link

Android app cannot be built if Unity XR is present in project #64

Open rysenko opened 1 year ago

rysenko commented 1 year ago

While building a project with Unity XR and AppMertrica I get a class name conflict:

Execution failed for task ':launcher:checkReleaseDuplicateClasses'. java.lang.RuntimeException: Duplicate class a.a.a found in modules jetified-arcore_client-runtime.jar (:arcore_client:) and jetified-installreferrer-2.2-runtime.jar (com.android.installreferrer:installreferrer:2.2)

This is due to required dependency Install Referrer Library 2.2 that is obfuscated in the same way as native ARCore dependency in Unity.

AppMetricaSupport commented 1 year ago

Добрый день!Ваше письмо получено и зарегистрировано под уникальным номером № 24742024. Ответ обязательно будет предоставлен, пожалуйста, ожидайте.Просим Вас не отправлять повторное письмо по данному вопросу - оно будет считаться новой заявкой и может быть обработано позднее.Помощь сервиса: https://yandex.ru/support/direct/?from=email--С уважением,Отдел клиентского сервисател.: 8 800 234-24-80 (звонок из регионов России бесплатный)тел.: +7 495 739-37-77&nbsp22.06.2023, 13:48, "Alexander Rysenko" @.***>: While building a project with Unity XR and AppMertrica I get a class name conflict: Execution failed for task ':launcher:checkReleaseDuplicateClasses'. java.lang.RuntimeException: Duplicate class a.a.a found in modules jetified-arcore_client-runtime.jar (:arcore_client:) and jetified-installreferrer-2.2-runtime.jar (com.android.installreferrer:installreferrer:2.2) This is due to required dependency Install Referrer Library 2.2 that is obfuscated in the same way as native ARCore dependeny in Unity.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

AppMetricaSupport commented 1 year ago

Hello!

Please provide further details:

  1. Which version of the AppMetrica Unity SDK are you trying to use?
  2. Which version of ARCore are you using?
  3. Which version of Unity are you using?
  4. Could you please provide the full error stack trace in a text file?
Avatarchik commented 10 months ago

I have a similar problem, when the project has AR Core, is there a solution?