[英]Add Firebase to Android app
我正在嘗試將Firebase安裝到我的Android應用中,但似乎我做錯了什么。 我所做的與本教程中看到的完全相同。
但是,當我將這個compile 'com.google.firebase:firebase-core:9.6.1'
放入我的項目時,我收到了以下錯誤消息:
Could not fint support-annotations.jar.....
本教程講述了有關此錯誤的內容:
Getting a "Could not find" error? Make sure you have the latest Google Repository in the Android SDK manager˛
問題是我擁有最新版本的Google Repository。 我無法更新它,因為SDK Manager中沒有可用的更新。
您有什么想法要解決嗎?
在Android SDK Manager的“附加功能”部分中,確保已安裝Android支持庫(v23.2.1)和Android存儲庫(v38)並保持最新狀態。
支持注釋庫在這里描述 。
當其中一個Firebase庫出現“找不到”錯誤時,適用於Google存儲庫的教程提示將適用。
我不得不更新android studio和gradle插件。 之后,一切正常。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.