Gradle - Android - In App Review causes compile error - Amplify old dependency - android

I am trying to integrate In App Review and I get this compile error:
Duplicate class com.google.android.play.core.common.IntentSenderForResultStarter found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.common.LocalTestingException found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.common.PlayCoreDialogWrapperActivity found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.listener.StateUpdatedListener found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.review.ReviewInfo found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-review-2.0.0-runtime (com.google.android.play:review:2.0.0)
Duplicate class com.google.android.play.core.review.ReviewManager found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-review-2.0.0-runtime (com.google.android.play:review:2.0.0)
Duplicate class com.google.android.play.core.review.ReviewManagerFactory found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-review-2.0.0-runtime (com.google.android.play:review:2.0.0)
Duplicate class com.google.android.play.core.review.testing.FakeReviewManager found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-review-2.0.0-runtime (com.google.android.play:review:2.0.0)
Go to the documentation to learn how to Fix dependency resolution errors.
Edit: I ran the command: ./gradlew app:dependencies >> deps.txt
and found out that the conflict is caused by Amplify core. It has a dependency on androidx.navigation:navigation-dynamic-features-fragment:2.3.4 for some reason and that's has com.google.android.play:core:1.9.1 inside.
How can I prevent Amplify causing this? How to solve this confilct?
Here is the dependency tree

I was able to solve this by changing the gradle file:
// gradle imports from Amplify docs below.
implementation('com.amplifyframework:aws-storage-s3:1.35.4') {
exclude group: 'com.google.android.play', module: 'core'
}
implementation('com.amplifyframework:aws-auth-cognito:1.35.4') {
exclude group: 'com.google.android.play', module: 'core'
}
// Amplify core dependency
implementation('com.amplifyframework:core:1.35.4') {
exclude group: 'com.google.android.play', module: 'core'
}

Related

Different libraries depend on the same library and will prompt "Duplicate class" during compilation. How to exclude this duplicate class?

error like this:
Duplicate class com.google.android.exoplayer2.ui.AspectRatioFrameLayout found in modules jetified-VideoPlayModule-Lite-2.3.61-runtime.jar (com.ycjiang:VideoPlayModule-Lite:2.3.61) and jetified-exoplayer-ui-2.12.1-runtime.jar (com.google.android.exoplayer:exoplayer-ui:2.12.1)
Duplicate class com.google.android.exoplayer2.ui.AspectRatioFrameLayout$1 found in modules jetified-VideoPlayModule-Lite-2.3.61-runtime.jar (com.ycjiang:VideoPlayModule-Lite:2.3.61) and jetified-exoplayer-ui-2.12.1-runtime.jar (com.google.android.exoplayer:exoplayer-ui:2.12.1)
gradle:
implementation 'com.google.android.exoplayer:exoplayer:2.12.1'
implementation 'com.ycjiang:VideoPlayModule:2.3.61'

Android parse-SDK-android and facebook SDK incompatibility

Latest versions of android parse SDK (1.24.x) include bolts-tasks instead of referencing it. In an app which also use Facebook SDK this leads to duplicate classes :
java.lang.RuntimeException: Duplicate class bolts.AggregateException found in modules bolts-tasks-1.24.1.jar (com.github.parse-community.Parse-SDK-Android:bolts-tasks:1.24.1) and bolts-tasks-1.4.0.jar (com.parse.bolts:bolts-tasks:1.4.0)
Duplicate class bolts.AndroidExecutors found in modules bolts-tasks-1.24.1.jar (com.github.parse-community.Parse-SDK-Android:bolts-tasks:1.24.1) and bolts-tasks-1.4.0.jar (com.parse.bolts:bolts-tasks:1.4.0)
Duplicate class bolts.AndroidExecutors$1 found in modules bolts-tasks-1.24.1.jar (com.github.parse-community.Parse-SDK-Android:bolts-tasks:1.24.1) and bolts-tasks-1.4.0.jar (com.parse.bolts:bolts-tasks:1.4.0)
Duplicate class bolts.AndroidExecutors$UIThreadExecutor found in modules bolts-tasks-1.24.1.jar (com.github.parse-community.Parse-SDK-Android:bolts-tasks:1.24.1) and bolts-tasks-1.4.0.jar (com.parse.bolts:bolts-tasks:1.4.0)
Duplicate class bolts.BoltsExecutors found in modules bolts-tasks-1.24.1.jar (com.github.parse-community.Parse-SDK-Android:bolts-tasks:1.24.1) and bolts-tasks-1.4.0.jar (com.parse.bolts:bolts-tasks:1.4.0)
Duplicate class bolts.BoltsExecutors$1 found in modules bolts-tasks-1.24.1.jar (com.github.parse-community.Parse-SDK-Android:bolts-tasks:1.24.1) and bolts-tasks-1.4.0.jar (com.parse.bolts:bolts-tasks:1.4.0)
...
Is there a solution ?
try this
implementation ("com.github.parse-community.Parse-SDK-Android:parse:1.24.1"){
exclude module:'bolts-tasks'
}
If it doesn't work then try this
implementation ("com.github.parse-community.Parse-SDK-Android:parse:1.24.1"){
exclude group:'com.github.parse-community' ,module:'bolts-tasks'
}
if you are using com.facebook.fresco:fresco then following solution is working
implementation ('com.facebook.fresco:fresco:2.1.0'){
exclude module:'bolts-tasks'
}
implementation "com.github.parse-community.Parse-SDK-Android:parse:1.24.1"
try this works for me
implementation "com.github.parse-community.Parse-SDK-Android:parse:1.24.1"
implementation ('com.github.parse-community:ParseFacebookUtils-Android:1.14.0'){
exclude module: 'bolts-android'
}

Android Gradle Dependency Duplicate Class Error

After installing Square's Reader SDK into my app, I'm running into duplicate class errors between some Gradle dependencies as shown below.
My app module dependencies:
dependencies {
def readerSdkVersion = "1.3.5"
implementation "com.squareup.sdk.reader:reader-sdk-$SQUARE_READER_SDK_APPLICATION_ID:$readerSdkVersion"
runtimeOnly ("com.squareup.sdk.reader:reader-sdk-internals:$readerSdkVersion") {
exclude group: 'com.squareup.phrase', module: 'phrase'
}
implementation 'com.squareup.phrase:phrase:1.1.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.multidex:multidex:2.0.1'
}
... and the build failure I get even though I tried excluding the conflicting group/module from Square's Phrase dependency:
Duplicate class com.squareup.phrase.BuildConfig found in modules jetified-phrase-1.1.0.jar (com.squareup.phrase:phrase:1.1.0) and reader-sdk-internals-1.3.5.jar (com.squareup.sdk.reader:reader-sdk-internals:1.3.5)
Duplicate class com.squareup.phrase.ListPhrase found in modules jetified-phrase-1.1.0.jar (com.squareup.phrase:phrase:1.1.0) and reader-sdk-internals-1.3.5.jar (com.squareup.sdk.reader:reader-sdk-internals:1.3.5)
Duplicate class com.squareup.phrase.ListPhrase$1 found in modules jetified-phrase-1.1.0.jar (com.squareup.phrase:phrase:1.1.0) and reader-sdk-internals-1.3.5.jar (com.squareup.sdk.reader:reader-sdk-internals:1.3.5)
Duplicate class com.squareup.phrase.ListPhrase$Formatter found in modules jetified-phrase-1.1.0.jar (com.squareup.phrase:phrase:1.1.0) and reader-sdk-internals-1.3.5.jar (com.squareup.sdk.reader:reader-sdk-internals:1.3.5)
Duplicate class com.squareup.phrase.Phrase found in modules jetified-phrase-1.1.0.jar (com.squareup.phrase:phrase:1.1.0) and reader-sdk-internals-1.3.5.jar (com.squareup.sdk.reader:reader-sdk-internals:1.3.5)
Duplicate class com.squareup.phrase.Phrase$KeyToken found in modules jetified-phrase-1.1.0.jar (com.squareup.phrase:phrase:1.1.0) and reader-sdk-internals-1.3.5.jar (com.squareup.sdk.reader:reader-sdk-internals:1.3.5)
Duplicate class com.squareup.phrase.Phrase$LeftCurlyBracketToken found in modules jetified-phrase-1.1.0.jar (com.squareup.phrase:phrase:1.1.0) and reader-sdk-internals-1.3.5.jar (com.squareup.sdk.reader:reader-sdk-internals:1.3.5)
Duplicate class com.squareup.phrase.Phrase$TextToken found in modules jetified-phrase-1.1.0.jar (com.squareup.phrase:phrase:1.1.0) and reader-sdk-internals-1.3.5.jar (com.squareup.sdk.reader:reader-sdk-internals:1.3.5)
Duplicate class com.squareup.phrase.Phrase$Token found in modules jetified-phrase-1.1.0.jar (com.squareup.phrase:phrase:1.1.0) and reader-sdk-internals-1.3.5.jar (com.squareup.sdk.reader:reader-sdk-internals:1.3.5)
Am I missing something here? And yes, I have all of the other Gradle configurations (i.e. multidex and compile options set) as mentioned in the SDK's docs mentioned earlier.

Duplicate class com.google.common found in modules guava error after migrating to Androidx

This is my build.gradle file:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.app"
multiDexEnabled true
minSdkVersion 26
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/INDEX.LIST'
}
}
configurations {
all*.exclude group: 'com.google.guava', module: 'listenablefuture'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.facebook.shimmer:shimmer:0.2.0'
implementation 'androidx.multidex:multidex:2.0.0'
testImplementation 'junit:junit:4.12'
implementation 'com.victor:lib:1.0.4'
implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'
implementation 'net.gotev:speech:1.3.1'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.facebook.fresco:fresco:1.3.0'
implementation 'com.haozhang.libary:android-animated-recording-view:1.0'
implementation 'com.github.arimorty:floatingsearchview:2.1.1'
implementation 'com.google.apis:google-api-services-youtube:v3-rev204-1.23.0'
implementation 'com.shawnlin:number-picker:2.4.6'
implementation 'com.unstoppable:submitbutton:1.1.3'
implementation 'ru.github.igla:ferriswheel:1.1.1'
implementation 'com.github.Yalantis:Context-Menu.Android:1.0.8'
// implementation 'com.android.support:cardview-v7:23.+'
implementation 'com.jaredrummler:material-spinner:1.2.5'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.1'
implementation 'com.mapzen.android:speakerbox:1.4.1'
implementation 'com.github.adrielcafe:AndroidAudioConverter:0.0.8'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core:1.1.0'
implementation group: 'com.google.cloud', name: 'google-cloud-speech', version: '1.22.0'
}
I am getting this error when I try to build my project:
Duplicate class com.google.common.annotations.Beta found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.annotations.GwtCompatible found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.annotations.GwtIncompatible found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.annotations.VisibleForTesting found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.Absent found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.AbstractIterator found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.AbstractIterator$1 found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.AbstractIterator$State found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.Ascii found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CaseFormat found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CaseFormat$1 found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CaseFormat$2 found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CaseFormat$3 found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CaseFormat$4 found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CaseFormat$5 found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CaseFormat$StringConverter found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CharMatcher found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CharMatcher$1 found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CharMatcher$And found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CharMatcher$BitSetMatcher found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CharMatcher$FastMatcher found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CharMatcher$NegatedFastMatcher found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CharMatcher$Or found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.CharMatcher$RangesMatcher found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.Charsets found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.Converter found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.Converter$1 found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.Converter$1$1 found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.Converter$ConverterComposition found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.Converter$FunctionBasedConverter found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
Duplicate class com.google.common.base.Converter$IdentityConverter found in modules guava-28.1-android.jar (com.google.guava:guava:28.1-android) and guava-jdk5-17.0.jar (com.google.guava:guava-jdk5:17.0)
How to fix this?
After many hours of research I found the solution. The problematic dependency was this:
'com.google.apis:google-api-services-youtube:v3-rev204-1.23.0'
I solved it by using:
implementation ('com.google.apis:google-api-services-youtube:v3-rev204-1.23.0'){
exclude group:'com.google.guava'
}
If you face a similar issue, try to create a new Android project and import only the dependencies from your previous project. Then divide and conquer until you find the problematic dependency.
On the surface, do you need both com.google.guava:guava-jdk5:17.0 and com.google.guava:guava:28.1-android dependencies?
I've often seen those duplicate class errors arise in two scenarios:
1) Two libraries are using different versions of the same dependency.
2) Using androidx and support library together in a project. Your two guava dependencies may be using google commons classes that are present in androidx and support library.
You should verify that all support library dependencies are replaced with androidx and if that is done, consider excluding the conflicting classes packages from either com.google.guava:guava-jdk5:17.0 or com.google.guava:guava:28.1-android.
may be it's too late. However, I am writing an answer to your problem.
I had the same issue. I was using the Youtube Data API v3. After few searches and seeing answers from Stackoverflow, I mixed all of them and somehow it worked!!
Here is all I did and it worked.
Added configurations to app level build.gradle file. Like below
configurations {
implementation.exclude module:'gauva-jdk5'
all*.exclude group: 'com.google.guava', module: 'listenablefuture' }
Added these two lines in dependency block
implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava' implementation 'com.google.guava:guava:26.0-android'
And inside the dependencies needed for youtbe data api I hadded
exclude group:'com.google.guava'
Just like below
implementation ('com.google.api-client:google-api-client-android:1.22.0') {
exclude group: 'org.apache.httpcomponents'
exclude group:'com.google.guava'
}
implementation ('com.google.apis:google-api-services-youtube:v3-rev183-1.22.0') {
exclude group: 'org.apache.httpcomponents'
exclude group:'com.google.guava'
}
to more check out https://stackguides.com/questions/61480581/duplicate-class-found-in-modules-guava-26-0-android-jar-and-guava-jdk5-17-0-jar#
I was getting same error
"Duplicate class com.google.common.annotations.Beta found in modules jetified-guava-27.1-android (com.google.guava:guava:27.1-android) and jetified-guava-jdk5-17.0 (com.google.guava:guava-jdk5:17.0)"
I implemented Youtube in my app using YouTube data api v3, while adding this app as a module in my, main app I got same error.
I resolved this error by removing some dependency
implementation('com.google.api-client:google-api-client-android:1.23.0') {
exclude group: 'org.apache.httpcomponents'
}
implementation('com.google.apis:google-api-services-youtube:v3-rev183-1.22.0') {
exclude group: 'org.apache.httpcomponents'
}
implementation('com.google.api-client:google-api-client-android:1.23.0') {
exclude group: 'org.apache.httpcomponents'
}
Above all three library I added but this was useless and throwing errors so removed these all.

Duplicate class com.google.api.client.http.apache.ApacheHttpRequest found in modules

I am trying to migrate to drive v3 api for my android app and I have followed instructions provided inhttps://github.com/gsuitedevs/android-samples/tree/master/drive/deprecation to migrate. I am getting dependency resolution errors.
I have used duplicate classes shown in log in exclude option but it haven't worked
list of my drive api dependencies
implementation 'com.google.android.gms:play-services-ads:17.2.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.http-client:google-http-client-gson:1.29.1'
implementation('com.google.api-client:google-api-client-android:1.28.0') {
exclude group: 'org.apache.httpcomponents'
}
implementation('com.google.apis:google-api-services-drive:v3-rev99-1.23.0') {
exclude group: 'org.apache.httpcomponents'
}
Below are the error lines shown
Duplicate class com.google.api.client.http.apache.ApacheHttpRequest found in modules google-http-client-1.29.1.jar (com.google.http-client:google-http-client:1.29.1) and google-http-client-apache-2.0.0.jar (com.google.http-client:google-http-client-apache:2.0.0)
Duplicate class com.google.api.client.http.apache.ApacheHttpResponse found in modules google-http-client-1.29.1.jar (com.google.http-client:google-http-client:1.29.1) and google-http-client-apache-2.0.0.jar (com.google.http-client:google-http-client-apache:2.0.0)
Duplicate class com.google.api.client.http.apache.ApacheHttpTransport found in modules google-http-client-1.29.1.jar (com.google.http-client:google-http-client:1.29.1) and google-http-client-apache-2.0.0.jar (com.google.http-client:google-http-client-apache:2.0.0)
Duplicate class com.google.api.client.http.apache.ContentEntity found in modules google-http-client-1.29.1.jar (com.google.http-client:google-http-client:1.29.1) and google-http-client-apache-2.0.0.jar (com.google.http-client:google-http-client-apache:2.0.0)
Duplicate class com.google.api.client.http.apache.HttpExtensionMethod found in modules google-http-client-1.29.1.jar (com.google.http-client:google-http-client:1.29.1) and google-http-client-apache-2.0.0.jar (com.google.http-client:google-http-client-apache:2.0.0)
Looking at the error message:
found in modules google-http-client-1.29.1.jar
it seems to reference:
implementation 'com.google.http-client:google-http-client-gson:1.29.1'
Based upon the version number. Have you tried to exclude the library from that artefact too?

Categories

Resources