如何将Firebase迁移到12.0.0版

时间:2018-03-28 07:20:22

标签: android firebase android-studio

我目前从旧版本将Firebase版本更新为12.0.0,但在编译gradle后,显示错误消息

build.gradle Error message

Gradle实施新Firebase库有什么问题?

代码build.gradle - >应用

implementation 'com.google.firebase:firebase-core:12.0.0'
implementation 'com.google.firebase:firebase-appindexing:12.0.0'
implementation 'com.google.firebase:firebase-invites:12.0.0'

和build.gradle底部

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

代码build.gradle - >根项目

buildscript {
repositories {
    jcenter()
    mavenCentral()
    google()
    maven { url "https://maven.google.com" }
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.1.0'
    classpath 'com.google.gms:google-services:3.2.0'
}}
allprojects {
repositories {
    jcenter()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    maven { url "https://jitpack.io" }
    maven { url "https://clojars.org/repo/" }
    maven { url "http://dl.bintray.com/rilixtech/maven" }
    maven { url "https://maven.google.com" }
    mavenCentral()
    google()
}}

来自控制台的消息错误

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.firebase:firebase-dynamic-links-license:12.0.0.

0 个答案:

没有答案