添加新位置sdk时,为什么会出错AdvertisingIdClient错误

时间:2019-05-21 09:04:59

标签: android api gradle sdk android-gradle

添加一些新的sdk位置时出现错误AdvertisingIdClient

这是我的图书馆 // Google Play服务     实施'com.google.android.gms:play-services-base:11.8.0'

implementation 'com.google.android.gms:play-services-location:11.8.0'

implementation 'com.google.android.gms:play-services-maps:11.8.0'

implementation 'com.google.android.gms:play-services-places:11.8.0'

implementation "com.google.firebase:firebase-messaging:11.8.0"

implementation 'com.google.android.libraries.places:places-compat:1.1.0'

implementation 'com.google.android.libraries.places:places:1.1.0'

错误:包com.google.android.gms.ads.identifier不存在

1 个答案:

答案 0 :(得分:0)

修改app / build.gradle以添加以下依赖项。

implementation 'com.google.android.gms:play-services-ads:17.2.0'