添加android支持设计库后出现Gradle错误

时间:2015-05-30 01:51:59

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

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'

我已将AppCompat Support Library省略为this article

我该如何解决?

1 个答案:

答案 0 :(得分:11)

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