My Android application had no problems with this build.gradle file.
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.marshall.opensurvey"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
jcenter()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile 'com.android.support:support-annotations:23.1.0'
compile 'com.android.support:support-v4:23.1.0'
compile 'com.android.support:support-v13:23.1.0'
compile 'com.squareup.okhttp:okhttp:2.0.0'
compile('com.mikepenz:materialdrawer:4.3.9@aar') {
transitive = true
}
compile 'com.mikepenz:iconics-core:1.7.9@aar'
compile 'com.mikepenz:google-material-typeface:1.2.0.1@aar'
compile 'com.google.android.gms:play-services-analytics:8.1.0'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile 'info.hoang8f:fbutton:1.0.5'
compile 'com.github.dmytrodanylyk.android-process-button:library:1.0.4'
compile 'com.github.medyo:fancybuttons:1.5@aar'
compile 'com.android.support:cardview-v7:23.1.0'
compile 'com.android.support:recyclerview-v7:23.1.0'
}
But, when I added another dependency in the build.gradle file and synchronized it, it started showing an error, stating that the attribute "rippleColor" was already defined. The new dependency that I put in the gradle file is this.
compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
I assume this error is shown because the newly added contains an attribute that has the same name as that already defined in the previously added libraries. What should I change in this file so that third-party libraries do not crash each other?
source
share