javaandroidvimeo-android

Error implementing Vimeo-networking


I have tried many different ways of getting Vimeo networking into my app, but nothing has worked. If I remove the implementation it works just fine so I know this is the issue. compile 'com.vimeo.networking:vimeo-networking:1.1.1'

gives me this error

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

I have searched all over and have yet to find a solution (yes I have tried cleaning and rebuilding the project)


Solution

  • SOLUTION: anthonycr's answer was perfect, but I also had to do this:

    implementation ("org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version") {
        exclude group: 'org.jetbrains', module: 'annotations'
    }
    
    implementation ('com.vimeo.networking:vimeo-networking:1.1.1') {
        exclude group: 'org.jetbrains', module: 'annotations'
    }