Начал получать исключение java.lang.ClassNotFoundException: com.android.billingclient.api.PurchasesUpdatedListenerAndroid

Форум для тех, кто программирует под Android
Anonymous
Начал получать исключение java.lang.ClassNotFoundException: com.android.billingclient.api.PurchasesUpdatedListener

Сообщение Anonymous »

Я начал получать сообщение об ошибке при запуске приложения Unity на устройстве Android при инициализации UnityPurchasing
Unity 2022.3.181, в App Purchasing 4.12.2, Target API 34< /p>

Код: Выделить всё

UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.android.billingclient.api.PurchasesUpdatedListener
at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in :0
at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in :0
at UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) [0x00000] in :0
at UnityEngine.AndroidJavaProxy..ctor (System.String javaInterface) [0x00000] in :0
at UnityEngine.Purchasing.GooglePurchaseUpdatedListener..ctor (UnityEngine.Purchasing.Interfaces.IGoogleLastKnownProductService googleLastKnownProductService, UnityEngine.Purchasing.Interfaces.IGooglePurchaseCallback googlePurchaseCallback, UnityEngine.Purchasing.Interfaces.IGooglePurchaseBuilder purchaseBuilder, UnityEngine.Purchasing.IGoogleCachedQueryProductDetailsService googleCachedQueryProductDetailsService, UnityEngine.Pur
Я пытался добавить специальную защиту с помощью -keep class com.android.billingclient.** {*; но это ничего не изменило
Есть какие-нибудь подсказки, как это исправить?

Подробнее здесь: https://stackoverflow.com/questions/787 ... client-api

Вернуться в «Android»