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
确保将其添加到您的根级别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.