5

添加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.xmlwith this message 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正如这篇文章所说,我已经省略了。

我该如何解决?

4

1 回答 1

11

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

于 2015-05-30T04:20:26.350 回答