Gradle error after add android support design library

北城以北 提交于 2019-12-07 04:27:37

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/30541403/gradle-error-after-add-android-support-design-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!