Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译报错 #68

Closed
sanergogogo opened this issue Aug 17, 2023 · 3 comments
Closed

编译报错 #68

sanergogogo opened this issue Aug 17, 2023 · 3 comments

Comments

@sanergogogo
Copy link

// 不排除
implementation ('com.github.gzu-liyujiang:Android_CN_OAID:4.2.5.1')
build出错:Could not find com.huawei.hms:ads-identifier:3.4.62.300.

implementation('com.github.gzu-liyujiang:Android_CN_OAID:4.2.5.1') {
        // 排除掉本项目依赖的华为官方广告标识服务SDK,也即是使用移动安全联盟SDK依赖的华为官方广告标识服务SDK
        exclude group: 'com.huawei.hms', module: 'ads-identifier' 
    }
build出错:Missing class com.huawei.hms.ads.identifier.AdvertisingIdClient.....

上面2者都试了一下,都是出错

@daquanzheng
Copy link

我也出现了第一个问题 没有出现第二个问题,麻烦博主解决一下
build出现
Failed to resolve: com.huawei.hms:ads-identifier:3.4.62.300

@liyujiang-gzu
Copy link
Member

我也出现了第一个问题 没有出现第二个问题,麻烦博主解决一下 build出现 Failed to resolve: com.huawei.hms:ads-identifier:3.4.62.300

@sanergogogo @daquanzheng 添加华为的仓库试试:

    repositories {
        maven {url 'https://developer.huawei.com/repo/'}
    }

@daquanzheng
Copy link

@liyujiang-gzu 可以了 问题解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants