简体   繁体   中英

Can't apply plugin at the end of android gradle file

In this tutorial I found that I have to add a line at the end of gradle(Module:app) file to enable firebase cloud messaging. But when I tried to add this line at the end of gradle file it shows me some errors (below):

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html Failed to resolve: com.google.firebase:firebase-core:17.3.0

My gradle(Module:app) file is : 在此处输入图片说明

确保将其添加到您的根级别build.gradle

'com.google.gms:google-services:4.1.0'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM