首页 > 解决方案 > split_lib 依赖项错误

问题描述

我长期以来一直面临这个错误,并且对如何摆脱它感到困惑。这是应用程序级 build.gradle 的片段:

dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.google.firebase:firebase-auth:12.0.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

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

这是我得到的错误:
这是我得到的错误

标签: androidandroid-studio

解决方案


我只是设法解决它。问题是由于启用了即时运行。我把它关掉了,它对我有用


推荐阅读