下面是应用程序/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
试图将一些libs从proteus中排除为exclude
标记,但没有帮助。
请帮帮忙。
步骤- 1.在工作室中创建空项目。
implementation ('com.github.flipkart-incubator:proteus:5.0.0-rc12')
并运行项目它会给出错误
发布于 2019-01-14 08:54:23
此问题已在5.0.0-rc14
版本中解决。
https://stackoverflow.com/questions/53828150
复制相似问题