Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle error after add android support design library

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?

like image 763
epool Avatar asked May 30 '15 01:05

epool


1 Answers

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.

like image 102
Hsingchien Cheng Avatar answered Sep 18 '22 23:09

Hsingchien Cheng