Location Credentials Provider is failing #1411
Labels
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
potential-regression
Marking this issue as a potential regression to be checked by team member
Describe the bug
We are using Cognito pool ID in our Android Project to use the AWS location service.
When we try to create the
LocationCredentialProvider
(AuthHelper(context).authenticateWithCognitoIdentityPool(xxxx)
) it is failing after1.2.39
->1.3.34
with the following error:java.lang.NoClassDefFoundError: aws.sdk.kotlin.services.cognitoidentity.endpoints.internal.PartitionsKt
Regression Issue
Expected behavior
It should successfully return the
LocationCredentialsProvider
objectCurrent behavior
Throwing Exception:
Steps to Reproduce
Location demo app was working as expected when
aws.sdk.kotlin:location
=>1.2.38
and just updating this to1.2.39
in the gradle configuration started get this exception.FYI, We are not forcing the OKHTTP3 library to downgrade (Some other issue mentioning that this exception is occurred when they force downgrade to OkHttp3 to 4.x verion )
Possible Solution
Currently we are downgraded the
aws.sdk.kotlin:location
to1.2.38
and working as expected.Exception started inside the
LocationCredentialsProvider
->val getIdResponse = cognitoIdentityClient?.getId(GetIdRequest { this.identityPoolId = identityPoolId })
Context
We are far away from the latest of the library in our production app and also concern about using not stable OkHttp3 (
5.0.0-alpha.14
) library which will override by the AWS library (transient dependency) in our production appAWS SDK for Kotlin version
1.238
-1.3.34
Platform (JVM/JS/Native)
JVM (Kotlin)
Operating system and version
Android 13
The text was updated successfully, but these errors were encountered: