FIrebase Cloud Messaging, cannot resolve dependency com.google.firebase:firebase-core:9.0.2

若如初见. 提交于 2019-12-20 05:12:08

问题


I was trying to write an application using Firebase Cloud Messaging as per the guidelines given here, but I'm struck in adding the dependency for implementing FCM (com.google.firebase:firebase-core:9.0.2). Every time I try to add it via project structure, it won't list the dependency in the search results. When I try to add it in app level gradle, it gives me an error that the dependency cannot be resolved. I don't know where I'm going wrong but please help me out with this.


回答1:


Download updates from your SDK manager. I had the same issue. Updating Google play services and Google Repository from the SDK manager worked for me.



来源:https://stackoverflow.com/questions/37699752/firebase-cloud-messaging-cannot-resolve-dependency-com-google-firebasefirebase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!