添加房间依赖性会产生明显的合并错误
adding room dependency gives manifest merge error
添加后
compile "android.arch.persistence.room:runtime:1.0.0-rc1"
到我的 gradle 文件,我在下面。知道如何解决这个问题吗?我尝试添加 tools:replace="android:value" 但它使我的应用崩溃。
Error:Execution failed for task ':app:processStagingDebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.2) from [com.android.support:design:26.0.2] AndroidManifest.xml:28:13-35
is also present at [com.android.support:support-core-utils:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:26:9-28:38 to override.
只需使用支持库的版本 26.1.0。
compile 'com.android.support:support-core-utils:26.1.0'
compile 'com.android.support:design:26.1.0'
//...
我刚刚删除了冲突的依赖项,例如:
implementation("android.arch.persistence.room:runtime:1.0.0-rc1") {
exclude group: 'com.android.support', module: 'support-core-utils'
}
错误消失了。
添加后
compile "android.arch.persistence.room:runtime:1.0.0-rc1"
到我的 gradle 文件,我在下面。知道如何解决这个问题吗?我尝试添加 tools:replace="android:value" 但它使我的应用崩溃。
Error:Execution failed for task ':app:processStagingDebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.2) from [com.android.support:design:26.0.2] AndroidManifest.xml:28:13-35
is also present at [com.android.support:support-core-utils:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:26:9-28:38 to override.
只需使用支持库的版本 26.1.0。
compile 'com.android.support:support-core-utils:26.1.0'
compile 'com.android.support:design:26.1.0'
//...
我刚刚删除了冲突的依赖项,例如:
implementation("android.arch.persistence.room:runtime:1.0.0-rc1") {
exclude group: 'com.android.support', module: 'support-core-utils'
}
错误消失了。