解决方案

    用这两行
    api 'com.huawei.android.hms:push:2.5.3.xxx'
    api 'com.huawei.android.hms:base:2.5.3.xxx'
    去替换
    implementation 'com.huawei.android.hms:push:2.5.3.xxx'

原理可以自己去官网看android studio3.4和gradle plugin5.x.x以后apiimplementation compile的区别,compile已被弃用,最新版本推荐使用api

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐