Gradle同步失败:所有Firebase库必须高于或低于14.0.0

五百年

我已经花了一段时间了,这让我发疯了。我已经研究了一些现有的Stack Overflow问题,但是没有任何效果。每当我添加AdMob广告单元所需的最后一行时,我都会不断收到此错误。人们似乎可以通过将该行的版本号更改为15.0.0来解决此问题,但是,正如您所看到的,我已经做到了。如果可以的话请帮忙。另外,这甚至不是我第一次使用广告单元。

Build.gradle(应用程序级别)

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.coincalc.anduril.sharetale"
        minSdkVersion 17
        targetSdkVersion 26
        versionCode 2
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }

    lintOptions {
        abortOnError false
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support:support-vector-drawable:26.1.0'
    implementation 'com.google.firebase:firebase-database:12.0.1'
    implementation 'com.google.firebase:firebase-auth:12.0.1'
    implementation 'com.android.support:support-v4:26.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    compile 'com.google.firebase:firebase-core:12.0.1'
    implementation 'com.google.android.gms:play-services-ads:15.0.0'
}

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

Build.gradle(项目级别)

buildscript {

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

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
克鲁蒂·帕雷克(Kruti Parekh)

通过将依赖关系更改为以下内容,将Firebase依赖关系升级到最新版本:

implementation 'com.google.firebase:firebase-database:16.0.1'

implementation 'com.google.firebase:firebase-auth:16.0.2'

implementation 'com. google.firebase:firebase-core:16.0.1'

然后在您的项目级别的Gradle文件中,将您的Google服务插件增​​加到 4.0.0

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

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

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

条纹数低于0

搜索所有带有0 0 0 0的字符串

org.apache.http.conn.HttpHostConnectException:连接到localhost:19538 [localhost / 0:0:0:0:0:0:0:0:1]失败:连接被拒绝(连接被拒绝)

获取所有数组的排列[1,1,1,1,1,0,0,0,0]

args ._ [0]中的._ [0]有什么作用?

将矩阵中位置低于0的所有元素转换为矩阵中的0(Python)

低于 0 时禁用按钮,高于时启用

摩卡说assert.equal([0,0],[0,0])失败。为什么?

有什么办法可以循环通过这些数字:-1 0、1 0、0 -1、0 1

reg [7:0] a [3:0] 和 reg [7:0] a [0:3] 有什么区别

tensorflow除以0/0 =:0

此代码正在打印具有0 0 0 0 0 5的数组,而不是预期的数组

'x = y = 0','x = 0;有什么区别?y = 0;”和“ int x = 0; int y = 0;' 关于执行?

如果R的所有值均为0,则填充0

所有功能必须位于[0,9]或[-10,0]中

PTS是否必须从0开始?

如何將數據框中的所有 0 (0%) 替換為 0

从lua_pcall(L,0,0,0)获取所有错误

使用request.getRemoteAddr()返回0:0:0:0:0:0:0:0:1

zookeeper无法打开localhost / 0:0:0:0:0:0:0:0:1:2181的套接字

Javascript / NodeJS:(()=> 0)===(()=> 0)

Matlab:0 <NaN = 0

%0|%0 如何工作?

ValueError: learning_rate 必须大于 0 但为 0

XRDP登录失败,显示0

assertNotEmpty(“ 0”)失败。为什么?

FwpmFilterAdd0失败(-2144206813)

加入失败时显示0

离子 http 失败(响应 0)