0
这是我的build.gradle的Android程序兼容性的lib +设计= LIB错误打造
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
defaultConfig {
applicationId "xxx"
minSdkVersion 18
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.android.support:support-v4:22.0.0'
compile 'com.android.support:cardview-v7:22.0.+'
compile 'com.android.support:recyclerview-v7:22.2.1'
compile 'com.android.support:design:22.2.0'
}
添加此库
compile 'com.android.support:design:22.2.0'
我不能构建应用程序之后,因为我有这样的错误:
/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.1/res/values/values.xml
Error:(2) Attribute "rippleColor" has already been defined
可以使用togheter这个库吗?
谢谢! Luis
p.s.我需要(现在)FloatingActionButton(fab)的设计库。
是否编译如果使用__22.2.1__版设计库(和所有其他支持库)太:
,如果你在项目中生成的attr文件中删除此行? – harism
你有不同版本的各种android支持库,为什么?我敢打赌,这打破了构建。 – dominik4142