摇篮错误后添加支持Android的设计库 [英] Gradle error after add android support design library
问题描述
我得到这个错误后添加编译com.android.support:design:22.2.0
来我的摇篮文件:
<$c$c>.../app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/res/values/values.xml$c$c>与此消息错误:(1)属性insetForeground已经被定义
I'm getting this error after add compile 'com.android.support:design:22.2.0'
to my gradle file:
.../app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/res/values/values.xml
with this message Error:(1) Attribute "insetForeground" has already been defined
.
我有这对我的build.gradle文件: `
I have this on my build.gradle file: `
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支持库
作为的这篇文章说。
我该如何解决这个问题?
How can I fix it?
推荐答案
您可能必须 ScrimInsetsFrameLayout
为您导航抽屉式设计在您的项目。删除这些属性的资源在你的ATTR和更换纸盒布局<一href="http://developer.android.com/reference/android/support/design/widget/NavigationView.html?utm_campaign=io15&utm_source=dac&utm_medium=blog">NavigationView.
You might have ScrimInsetsFrameLayout
for your Navigation drawer design in your project. Remove those attribute resources in your attr and replace the drawer layout with NavigationView.
这篇关于摇篮错误后添加支持Android的设计库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!