Reputation: 6819
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
.
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'
I have omitted AppCompat Support Library
as this article says.
How can I fix it?
Upvotes: 5
Views: 4231
Reputation: 594
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.
Upvotes: 11