aws-amplify / amplify-android

The fastest and easiest way to use AWS from your Android app.
https://docs.amplify.aws/lib/q/platform/android/
Apache License 2.0
249 stars 117 forks source link

Update your com.google.android.play:core:1.10.3 on 1.38.8 #2889

Closed NANAIPRM closed 2 months ago

NANAIPRM commented 3 months ago

Before opening, please confirm:

Language and Async Model

Kotlin

Amplify Categories

Authentication

Gradle script dependencies

implementation 'com.amplifyframework:core:1.38.8' implementation 'com.amplifyframework:aws-auth-cognito:1.38.8' implementation 'com.amplifyframework:rxbindings:1.38.8'

Environment information

``` # Put output below this line ```

Please include any relevant guides or documentation you're referencing

No response

Describe the bug

Update your com.google.android.play:core:1.10.3 Maven dependency to an Android 14 compatible version! Your current com.google.android.play:core:1.10.3 library is incompatible with targetSdkVersion 34 (Android 14), which introduces a backwards-incompatible change to broadcast receivers. As a reminder, from August 31, 2024, Google Play requires all new app releases to target Android 14. Update to the latest library version dependency to avoid app crashes.


how to fix on it

Reproduction steps (if applicable)

No response

Code Snippet

// Put your code below this line.

Log output

``` // Put your logs below this line ```

amplifyconfiguration.json

No response

GraphQL Schema

```graphql // Put your schema below this line ```

Additional information and screenshots

No response

tylerjroach commented 3 months ago

@NANAIPRM

Amplify Android v1 is deprecated as of June 1st, 2024. No new features or bug fixes will be added. Dependencies may become outdated and potentially introduce compatibility issues.

Please use the latest version (v2) of Amplify Library for Android to get started. Refer to the upgrade guide for instructions on upgrading your application to the latest version.

pauledwardtang commented 3 months ago

@NANAIPRM I had a similar issue, but for com.google.android.play:core:1.9.1. After updating (yes updating) to 1.37.10, that made the problem go away.

The problematic transitive dependency was removed in https://github.com/aws-amplify/amplify-android/pull/2131.

I ran this command to find it:

./gradlew app:dependencyInsight --configuration [VARIANT]RuntimeClasspath --dependency com.google.android.play:core
com.google.android.play:core:1.9.1
\--- androidx.navigation:navigation-dynamic-features-runtime:2.3.4
     \--- androidx.navigation:navigation-dynamic-features-fragment:2.3.4
          \--- com.amplifyframework:core:1.35.1

We aren't using the rxbindings dependency, so maybe there is another dependency in that library (doubtful) or a release after 1.37.10 reintroduced the play core dependency. Have you tried the dependencyInsight gradle command?

tylerjroach commented 2 months ago

Please feel free to continue community discussions. I will be closing this ticket, however, since Amplify v1 is no longer supported.

github-actions[bot] commented 2 months ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.