Created
March 2, 2018 16:02
-
-
Save ilhamsuaib/45904c8e83f9d2a45901aa56c69e4e33 to your computer and use it in GitHub Desktop.
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-android-extensions' | |
apply plugin: 'kotlin-kapt' | |
apply plugin: 'io.fabric' | |
android { | |
compileSdkVersion 27 | |
defaultConfig { | |
--- | |
minSdkVersion 17 | |
targetSdkVersion 27 | |
versionCode 1 | |
versionName "1.0" | |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
vectorDrawables.useSupportLibrary = true | |
multiDexEnabled true | |
} | |
buildTypes { | |
release { | |
minifyEnabled true | |
shrinkResources true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
debug { | |
applicationIdSuffix '.debug' | |
} | |
} | |
dataBinding.enabled true | |
} | |
androidExtensions { | |
experimental = true | |
} | |
ext { | |
supportVersion = '27.1.0' | |
ankoVersion = '0.10.1' | |
rxJavaVersion = '2.1.3' | |
rxAndroidVersion = '2.0.1' | |
firebaseVersion = '11.8.0' | |
playServiceVersion = '11.8.0' | |
dagger2Version = '2.14.1' | |
} | |
dependencies { | |
implementation fileTree(include: ['*.jar'], dir: 'libs') | |
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version" | |
implementation 'com.android.support.constraint:constraint-layout:1.0.2' | |
//support version | |
//noinspection GradleCompatible | |
implementation "com.android.support:support-v4:$supportVersion" | |
implementation "com.android.support:appcompat-v7:$supportVersion" | |
implementation "com.android.support:design:$supportVersion" | |
implementation "com.android.support:cardview-v7:$supportVersion" | |
implementation "com.android.support:recyclerview-v7:$supportVersion" | |
implementation "com.android.support:customtabs:$supportVersion" | |
//dagger2 | |
implementation "com.google.dagger:dagger:$dagger2Version" | |
kapt "com.google.dagger:dagger-compiler:$dagger2Version" | |
implementation "com.google.dagger:dagger-android:$dagger2Version" | |
implementation "com.google.dagger:dagger-android-support:$dagger2Version" | |
kapt "com.google.dagger:dagger-android-processor:$dagger2Version" | |
//retrofit2gson | |
implementation 'com.squareup.retrofit2:converter-gson:2.3.0' | |
//anko | |
implementation "org.jetbrains.anko:anko:$ankoVersion" | |
implementation "org.jetbrains.anko:anko-commons:$ankoVersion" | |
//rx java | |
implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion" | |
implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion" | |
//rx binding | |
implementation 'com.jakewharton.rxbinding2:rxbinding-kotlin:2.0.0' | |
implementation 'com.jakewharton.rxbinding2:rxbinding-support-v4-kotlin:2.0.0' | |
//firebase | |
implementation "com.google.firebase:firebase-database:$firebaseVersion" | |
implementation "com.google.firebase:firebase-crash:$firebaseVersion" | |
implementation "com.google.firebase:firebase-core:$firebaseVersion" | |
implementation "com.google.firebase:firebase-messaging:$firebaseVersion" | |
implementation "com.google.firebase:firebase-auth:$firebaseVersion" | |
//play service | |
implementation "com.google.android.gms:play-services-auth:$playServiceVersion" | |
//last adapter | |
implementation 'com.github.nitrico.lastadapter:lastadapter:2.3.0' | |
kapt "com.android.databinding:compiler:$gradle_plugin_version" | |
//unit test | |
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', { | |
exclude group: 'com.android.support', module: 'support-annotations' | |
}) | |
testImplementation 'junit:junit:4.12' | |
//crashlytic | |
implementation('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') { | |
transitive = true | |
} | |
//other lib | |
implementation 'de.hdodenhof:circleimageview:2.2.0' | |
implementation 'com.github.bumptech.glide:glide:4.5.0' | |
kapt 'com.github.bumptech.glide:compiler:4.3.1' | |
implementation 'com.karumi:dexter:4.2.0' | |
implementation 'me.relex:circleindicator:1.2.2@aar' | |
} | |
apply plugin: 'com.google.gms.google-services' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment