小编Dut*_*r25的帖子

Gradle错误:"属性"rippleColor"已在android studio中定义"

所以我尝试了材料设计支持库,当我添加依赖项,编译时,我收到了这个错误.我看了类似的问题并尝试了他们的解决方案,但它不会得到修复,所以我希望你能帮助我.

这是我的logcat:

C:\Users\Jan\AndroidStudioProjects\SwagCalculator3\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.2.0\res\values\values.xml
Error:(1) Attribute "rippleColor" has already been defined
Run Code Online (Sandbox Code Playgroud)

这是我的build.gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"

defaultConfig {
    applicationId "com.raptor.swagcalculator.swagcalculator"
    minSdkVersion 21
    targetSdkVersion 22

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:design:22.2.0'
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:support-v4:22.2.0'
compile 'com.android.support:cardview-v7:22.2.0'
}
Run Code Online (Sandbox Code Playgroud)

android defined gradle

17
推荐指数
2
解决办法
1万
查看次数

标签 统计

android ×1

defined ×1

gradle ×1