我想将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
我不明白为什么会出现此错误。我该如何解决?
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句