解决方案
用这两行
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以后api
,implementation
和compile
的区别,compile
已被弃用,最新版本推荐使用api
所有评论(0)