无法将firebase添加到Android应用程序

李煌

我想将Firebase添加到我的应用程序中以进行推送通知。我关注了firebase文档,并执行了以下操作:

root / app / build.gradle:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.google.firebase:firebase-core:9.0.2'
}

apply plugin: 'com.google.gms.google-services'

root / build.gradle:

dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'
        classpath 'com.google.gms:google-services:3.0.0'
    }

我还在目录中添加了google-services.json root/app尝试同步项目时,出现错误:

错误:(25,13)无法解决:com.google.firebase:firebase-core:9.0.2

我不明白为什么会出现此错误。我该如何解决?

马约尔
  1. 转到工具-> Android-> SDK管理器。
    Android Studio设置
  2. 在“ SDK工具”标签中,分别将“ Google Play服务”和“ Google存储库”分别更新为至少30和28。
  3. 用Gradle文件同步项目。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何将协作者添加到Firebase应用程序?

将libgdx添加到Android本机应用程序

无法将System.Configuration.ConfigurationManager添加到.NET Core应用程序

无法将Swift文件添加到应用程序的资源包中

将firebase-core和auth添加到项目后无法运行flutter应用程序

无法将库添加到我的应用程序中?

如何将Android应用程序添加到iOS应用程序中已在使用的现有Firebase项目中?

Android-Dagger2-无法将依赖关系从应用程序组件添加到活动范围

无法将应用程序添加到三星智能电视仿真器

无法将新的应用程序添加到Fabric

Firebase链接无法将项目添加到Web应用程序

如何将应用程序图标添加到Xamarin Android应用程序

无法将源代码文件添加到Windows Forms应用程序?

无法将文本字段添加到android应用程序

将Firebase添加到应用程序依赖项列表时,应用程序中断

无法将应用程序和扩展都不添加到Chrome

Android将应用程序添加到“设置为”或“将图片设置为”选项列表

无法将“按需运行” WebJob添加到Azure移动应用程序

仅使用“ Web应用程序”方法将Firebase添加到我的Cordova应用程序是否可行?

如何将多个Android应用程序添加到您的Firebase项目?

无法将.tsx文件添加到Node.js Web应用程序项目

无法将 React-Native 添加到现有应用程序

尝试将 firebase 库添加到使用谷歌地图 API 的应用程序时出错

无法将 tools:replace="name" 添加到应用程序标签(Sugar Orm 应用程序错误)

将实时数据库添加到我在 android studio 上的应用程序 - 无法解决:firebase-database-15.0.0

无法通过 arm 模板将站点扩展添加到 azure web 应用程序

Flutter:无法将 ListView 添加到示例应用程序

使用带有颤动的 firebase 将存档添加到应用程序

如何将 Firebase 添加到 Flutter 应用程序