Skip to content Skip to sidebar Skip to footer

Updating Com.android.support Libraries V7:26.+ To V7:28.0.0 Throw Multiple Dex Files Define Lcom/google/common/util/concurrent/ListenableFuture

I am trying to upgrade dependencies from v:7:26.+ to v:7.28.0.0, sync is okay, but Multiple dex error is thrown when I try to run the app, i am not sure what it is complaining, tri

Solution 1:

Solution: Excluding Guava group with listenablefuture module from current transitive dependency

implementation("android.arch.work:work-runtime:1.0.0-alpha09") {
    exclude group: 'com.google.guava', module: 'listenablefuture' 
}

Also, use this configuration for linkedin-sdk:

api project(path: ':linkedin-sdk') {
    transitive = true
}

Reason:

As per Google Issue Tracker,

It is surprisingly done on purpose! (reference) Yet new release of Guava will be available soon, with of course resolve issue. For now, excluding as stated above should work perfectly.


Post a Comment for "Updating Com.android.support Libraries V7:26.+ To V7:28.0.0 Throw Multiple Dex Files Define Lcom/google/common/util/concurrent/ListenableFuture"