Duplicate jar (ListenableFuture.class) while migrating to New Place SDK google

后端 未结 4 1708
猫巷女王i
猫巷女王i 2021-02-05 23:05

I am trying to migrate my Autocomplete widget Places SDK Google to the new one using this migration guide. But once I try to generate my release or debug apk start getting the e

4条回答
  •  礼貌的吻别
    2021-02-05 23:50

    new places SDK is working but when you migrate to android x it's not working

    so add these below lines in app/build dependencies

    dependencies {
        implementation ('com.google.android.libraries.places:places:1.0.0'){
            exclude group: 'com.google.guava', module: 'listenablefuture'
        }
    }
    
    android {
       configurations{
           all*.exclude group: 'com.google.guava', module: 'listenablefuture'
       }
    }
    

提交回复
热议问题