Unity SDK Class Not found issue
in progress
A
Ankur Ranpariya
We are using Game Analytic SDK v 7.7.2 with Unity LTS 2021.3.31f1.
we are seeing a warning in the Device log about Some native code is not found by Game Analytics SDK Utilities for Android OS.
Added the log Below
2024-03-09 19:44:38.554 27948 28403 Warn System.err java.lang.ClassNotFoundException: com.huawei.hms.ads.identifier.AdvertisingIdClient
2024-03-09 19:44:38.554 27948 28403 Warn System.err at java.lang.Class.classForName(Native Method)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at java.lang.Class.forName(Class.java:536)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at java.lang.Class.forName(Class.java:467)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.utilities.Reflection.invokeStaticMethod(Reflection.java:1)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.utilities.Reflection.getAdvertisingInfoObject(Reflection.java:32)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.utilities.Reflection.getAdId(Reflection.java:6)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.utilities.GAUtilities.getOAID(GAUtilities.java:4)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.device.GADevice.getOAID(GADevice.java:41)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.state.GAState.getIdentifier(GAState.java:65)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.state.GAState.getInitAnnotations(GAState.java:14)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.http.GAHTTPApi.requestInitReturningDict(GAHTTPApi.java:138)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.state.GAState.startNewSession(GAState.java:71)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.state.GAState.internalInitialize(GAState.java:50)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.GameAnalytics$15.execute(GameAnalytics.java:65)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at com.gameanalytics.sdk.threading.GAThreading$1.run(GAThreading.java:9)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at java.util.TimerThread.mainLoop(Timer.java:563)
2024-03-09 19:44:38.554 27948 28403 Warn System.err at java.util.TimerThread.run(Timer.java:513)
2024-03-09 19:44:38.554 27948 28403 Warn System.err Caused by: java.lang.ClassNotFoundException: com.huawei.hms.ads.identifier.AdvertisingIdClient
2024-03-09 19:44:38.554 27948 28403 Warn System.err ... 17 more
Nicky Toma
in progress
Nicky Toma
Hi Ankur, could you please use EnableAdvertisingIdTracking(false) to disable advertising ID tracking on Huawei devices. Hopefully that will fix this issue.