android - Error converting bytecode - DexException- Firebase Auth -


i have tried out firebase auth ui. while running project dexexception come out. have read readme files given in firebase github, couldn't find solution. confused whether missed anything. added both gradles , error log.

my app gradle follows:

apply plugin: 'com.android.application' apply plugin: 'kotlin-android'  apply plugin: 'kotlin-android-extensions'  android {     compilesdkversion 25     buildtoolsversion "26.0.0"     defaultconfig {         applicationid "com.writein.results"         minsdkversion 21         targetsdkversion 25         versioncode 1         versionname "1.0"         testinstrumentationrunner "android.support.test.runner.androidjunitrunner"         multidexenabled true     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }     packagingoptions {         exclude 'meta-inf/license'         exclude 'meta-inf/license-firebase.txt'         exclude 'meta-inf/notice'     } }  dependencies {     implementation filetree(dir: 'libs', include: ['*.jar'])     implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"     // anko commons     compile "org.jetbrains.anko:anko-commons:$anko_version"     //support     implementation 'com.android.support.constraint:constraint-layout:1.0.2'     implementation "com.android.support:appcompat-v7:$supportlibversion"     compile "com.android.support:customtabs:$supportlibversion"     compile "com.android.support:cardview-v7:$supportlibversion"     compile 'com.android.support:multidex:1.0.2'     //firebase auth     compile 'com.firebaseui:firebase-ui-auth:2.2.0'     compile "com.google.firebase:firebase-auth:$playservicesversion"     compile "com.google.android.gms:play-services-auth:$playservicesversion"     testimplementation 'junit:junit:4.12'     androidtestimplementation 'com.android.support.test:runner:1.0.0'     androidtestimplementation 'com.android.support.test.espresso:espresso-core:3.0.0' }  apply plugin: 'com.google.gms.google-services' 

project gradle:

buildscript {     ext.kotlin_version = '1.1.3-2'     ext.anko_version = '0.10.0'     ext.playservicesversion = '11.0.4'     ext.supportlibversion = '25.4.0'     repositories {         google()         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:3.0.0-beta2'         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"          // note: not place application dependencies here; belong         // in individual module build.gradle files         classpath 'com.google.gms:google-services:3.1.0'     } }  allprojects {     repositories {         google()         jcenter()     } }  task clean(type: delete) {     delete rootproject.builddir } 

error :

failure: build failed exception.

  • what went wrong: execution failed task ':app:transformdexarchivewithdexmergerfordebug'.

    com.android.build.api.transform.transformexception: com.android.dex.dexexception: multiple dex files define lcom/google/firebase/iid/zzd;


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -