【问题标题】:Firebase libraries must be either above or below 14.0.0 after connecting firebase to android studio将firebase连接到android studio后,Firebase库必须高于或低于14.0.0
【发布时间】:2018-08-14 19:18:03
【问题描述】:

所以我没有找到包的问题,​​我通过在 android studio 中验证和同步 firebase 解决了这个问题,之后我在同步 gradle 时突然开始遇到这个问题。这是我的文件。

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    buildToolsVersion '27.0.3'

    defaultConfig {
        applicationId "APP NAME"
        minSdkVersion 15
        targetSdkVersion 27
        versionCode 42
        versionName '3.7'
    }

    dexOptions {

        jumboMode true
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }

    productFlavors {
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.mcxiaoke.volley:library:1.0.19'
    implementation 'com.github.chrisbanes.photoview:library:1.2.3'
    implementation 'com.facebook.android:facebook-android-sdk:4.+'
    implementation 'com.pkmmte.view:circularimageview:1.1'
    implementation 'com.melnykov:floatingactionbutton:1.3.0'
    implementation 'com.squareup.okhttp:okhttp:2.5.0'
    implementation 'com.github.bumptech.glide:glide:3.7.0'
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:animated-vector-drawable:27.1.1'
    implementation 'com.android.support:mediarouter-v7:27.1.1'
    implementation 'com.android.support:customtabs:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'com.balysv:material-ripple:1.0.2'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.google.firebase:firebase-core:16.0.0'
    implementation 'com.google.firebase:firebase-ads:15.0.1'
    implementation 'com.google.firebase:firebase-messaging:17.0.0'
    implementation 'com.google.android.gms:play-services-gcm:15.0.1'
    implementation 'com.google.android.gms:play-services-ads:15.0.1'
    implementation 'com.google.firebase:firebase-auth:11.6.0'
    compile 'com.google.firebase:firebase-core:16.0.0'
}

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

我无法弄清楚这里突然出了什么问题,我认为没有问题,只是与 json 文件/firebase 同步中的包名称有关的问题,然后当它解决时弹出。

【问题讨论】:

    标签: android firebase android-studio


    【解决方案1】:

    这个依赖违反了错误信息中的陈述:

    com.google.firebase:firebase-auth:11.6.0
    

    你应该更新它:

    com.google.firebase:firebase-auth:16.0.3
    

    所有库的最新版本是listed here

    【讨论】:

      猜你喜欢
      • 2018-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-25
      • 1970-01-01
      • 2021-02-08
      • 2018-04-30
      相关资源
      最近更新 更多