【问题标题】:Gradle error after add android support design library添加android支持设计库后的Gradle错误
【发布时间】:2015-05-30 01:51:58
【问题描述】:

compile 'com.android.support:design:22.2.0' 添加到我的 gradle 文件后出现此错误: .../app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/res/values/values.xml 带有此消息Error:(1) Attribute "insetForeground" has already been defined

我的 build.gradle 文件中有这个: `

compile 'com.android.support:design:22.2.0'
compile 'com.android.support:cardview-v7:22.2.0'
compile 'com.android.support:recyclerview-v7:22.2.0'
compile 'com.google.android.gms:play-services-base:7.5.0'
compile 'com.google.android.gms:play-services-location:7.5.0'
compile 'com.google.android.gms:play-services-gcm:7.5.0'
compile 'com.google.android.gms:play-services-maps:7.5.0'

正如this article 所说,我省略了AppCompat Support Library

我该如何解决?

【问题讨论】:

    标签: android android-support-library android-design-library


    【解决方案1】:

    您的项目中的导航抽屉设计可能有ScrimInsetsFrameLayout。删除 attr 中的那些属性资源,并将抽屉布局替换为 NavigationView

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多