I'm implementing push notification in Huawei devices and I've got this exception while trying to get token. And this this because of this line:
Client = HmsInstanceId.GetInstance(Application.Context);
Exception:
{Java.Lang.NoClassDefFoundError: Failed resolution of:
Lcom/huawei/hms/framework/common/EmuiUtil; --->
Java.Lang.ClassNotFoundException: Didn't find class
"com.huawei.hms.framework.common.EmuiUtil" on path: DexPathList[[zip
file....
The exception message :
failed resolution of: Lcom/huawei/hms/framework/common/EmuiUtil
How can I solve it?
Yasmine Abdelsamie :
The problem was solved by downgrading Huawei.Hms.Push package",
2022-01-08T15:27:34
Wen xu Li :
Please check whether the HMS Core SDK is integrated.\nFor more information, please refer to: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides-V5/identifier-service-integrating-sdk-0000001056460552-V5?ha_source=hms1.",
2021-12-30T02:07:47