Skip to content

华为鸿蒙4.0手机不能使用DeviceIdentifier.getOAID(this);方法 #86

@godcop

Description

@godcop

一使用这个方法就报错:
Didn't find class "com.huawei.hms.ads.identifier.AdvertisingIdClient" on path: DexPathList
Failed resolution of: Lcom/huawei/hms/ads/identifier/AdvertisingIdClient;
其它方法都正常,唯独oaid的两个报错。

build.gradle配置如下:
implementation ('com.github.gzu-liyujiang:Android_CN_OAID:4.2.9', {\r\nexclude group: 'com.huawei.hms', module: 'ads-identifier'\r\nexclude group: 'com.hihonor.mcs', module: 'ads-identifier'\r\nrepositories { maven { url 'https://developer.huawei.com/repo' } }\r\nruntimeOnly 'com.huawei.hms:ads-identifier:3.4.62.300'\r\nrepositories { maven { url 'https://developer.hihonor.com/repo' } }\r\nruntimeOnly 'com.hihonor.mcs:ads-identifier:1.0.2.301'\r\n})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions