解决com.google.firebase:firebase-core:16.0.3中显示的错误

问题描述 投票:1回答:2

click here to check exact error which i am getting

 buildscript {

repositories {
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
    classpath 'com.google.gms:google-services:4.0.1'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}
allprojects {
    repositories {
        google()
        jcenter()
    }
}


task clean(type: Delete) {
    delete rootProject.buildDir
}

这是我在项目级别的build.gradle你可以检查图像链接的确切错误,这将反映我的问题.. qazxsw poi

我过去几天都在想我。请帮助我

android firebase android-studio
2个回答
1
投票

错误是(根据图像):

无法解决:com.google.firebase:firebase-database:16.0.3

要解决这个问题,请使用every thing which is needed for upgradation is already over yyou can check this by clicking here i have provided one screenshot for that版本来使用16.0.1,因为它是最新版本。

firebase-database

您可以查看implementation 'com.google.firebase:firebase-database:16.0.1' 获取最新版本。


0
投票

只需以这种方式添加库

here

你必须将'compile'指令改为'implementation'

© www.soinside.com 2019 - 2024. All rights reserved.