相关疑难解决方法(0)

添加Firebase会导致混音版本警告可能导致运行时崩溃

空项目中,添加firebase后会导致以下错误:

图像版本: -

混合版本可能导致运行时崩溃

文字版: -

所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃).找到版本27.1.1,25.2.0.示例包括com.android.support:animated-vector-drawable:27.1.1和com.android.support:support-media-compat:25.2.0

另一个错误:

警告:配置'compile'已过时,已被'implementation'和'api'取代.

是否有任何可能的解决方案来删除这些警告?

我的项目build.gradle是:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.1'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:3.1.1'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
} …
Run Code Online (Sandbox Code Playgroud)

android firebase

5
推荐指数
1
解决办法
1412
查看次数

标签 统计

android ×1

firebase ×1