包含proteus库时出错-“ android.support.v7.appcompat.R $ layout”

时间:2018-12-18 07:24:05

标签: android proteus

下面是app / build.gradle文件

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation ('com.github.flipkart-incubator:proteus:5.0.0-rc12') {
        exclude group: 'com.android.support-v7'
        exclude module: 'appcompat-v7'
        exclude module: 'support-v4'
    }
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    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'
}

错误-

  

错误:程序类型已存在:   android.support.v7.appcompat.R $ layout

完整错误-https://gist.github.com/sisogit/055c93ddc08b1e24c6ae0e4c6f1129f0

试图将某些库作为exclude标记从蛋白质库中排除,但没有帮助。

请帮助。

步骤- 1.在Studio中创建一个空项目。

  1. 运行>>正常工作

  2. 添加implementation ('com.github.flipkart-incubator:proteus:5.0.0-rc12')并运行项目

它将给出错误

1 个答案:

答案 0 :(得分:0)

此问题已在版本5.0.0-rc14中修复