-
Notifications
You must be signed in to change notification settings - Fork 18
AndroidJavaException: java.lang.NoClassDefFoundError #45
Comments
Добрый день!Ваше письмо получено и зарегистрировано под уникальным номером № 15570851. Ответ обязательно будет предоставлен, пожалуйста, ожидайте.Просим Вас не отправлять повторное письмо по данному вопросу - оно будет считаться новой заявкой и может быть обработано позднее.Помощь сервиса: https://yandex.ru/support/direct/?from=email--С уважением,Отдел клиентского сервисател.: 8 800 234-24-80 (звонок из регионов России бесплатный)тел.: +7 495 739-37-77 18.01.2022, 20:49, "Dmitry Maksimenko" ***@***.***>:
Create empty unity android project
Import AppMetrica
Import External Dependency Manager
Enable "Custom Main Gradle Template" in Player Settings/Publishing Settings
Resolve dependencies on Assets/External Dependency Manager/Android Resolver/Forse Resolve
Run Build
Unity version 2020.3.26f1
AppMetrica version 4.1.0
External Dependency Manager version 1.2.168
2022-01-18 20:44:36.180 12970-12993/? E/Unity: AndroidJavaException: java.lang.NoClassDefFoundError: com.yandex.metrica.impl.ob.uf
java.lang.NoClassDefFoundError: com.yandex.metrica.impl.ob.uf
at com.yandex.metrica.impl.ob.uf.a(SourceFile:1)
at com.yandex.metrica.YandexMetrica.resumeSession(SourceFile:1)
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:255)
at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics;
at com.yandex.metrica.impl.ob.d0.<init>(SourceFile:9)
at com.yandex.metrica.impl.ob.d0.<init>(Unknown Source:2)
at com.yandex.metrica.impl.ob.X.<init>(SourceFile:17)
at com.yandex.metrica.impl.ob.X.<init>(SourceFile:7)
at com.yandex.metrica.impl.ob.X.g(SourceFile:5)
at com.yandex.metrica.impl.ob.u
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
@DmitryMaksimenko this is because metrica plugin doesn't use dependency.xml file that helps the External Dependency Manager resolve native libraries. This results in plain removal of those needed libraries during resolve. |
@kbobnis AppMetrica devs should add xml with dependencies to the plugin to avoid such problems |
I have created the dependency.xml File and local maven repo by myself. (I have not tested it on device yet, but I saw that the mobmetricalib.aar library was properly regenerated by external dependency manager). How I did it:
|
Have the same issue. As a temporary solution, add this to your dependency.xml |
Same |
Попробуйте, пожалуйста, добавить следующие зависимости в файл: Assets/Plugin/Editor/Dependencies.xml:
Если файла нет, то необходимо его создать. Полный файл будет выглядеть следующим образом:
Please try adding the following dependencies to the file: Assets/Plugin/Editor/Dependencies.xml:
If there is no file, you need to create it. The full file will be like this:
|
Помогло для ошибки com.yandex.metrica.impl.ob.uf при сборке для huawei hms. |
The text was updated successfully, but these errors were encountered: