Home:ALL Converter>failed resolution of: Lcom/huawei/hms/framework/common/EmuiUtil

failed resolution of: Lcom/huawei/hms/framework/common/EmuiUtil

Ask Time:2021-12-30T03:20:13         Author:Yasmine Abdelsamie

Json Formatter

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?

Author:Yasmine Abdelsamie,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/70524032/failed-resolution-of-lcom-huawei-hms-framework-common-emuiutil
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
yy