首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >包含proteus库时出错- "android.support.v7.appcompat.R$layout“

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

Stack Overflow用户
提问于 2018-12-18 07:24:04
回答 1查看 106关注 0票数 0

下面是应用程序/build.gradle文件

代码语言:javascript
运行
复制
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.在工作室中创建空项目。

  1. 运行>>正常工作
  2. 添加implementation ('com.github.flipkart-incubator:proteus:5.0.0-rc12')并运行项目

它会给出错误

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-01-14 08:54:23

此问题已在5.0.0-rc14版本中解决。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53828150

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档