javaandroidkotlingoogle-play-console

Play Console Warning: Update your Play Core Maven dependency to an Android 14 compatible version


Received a warning in the Play Console saying the following

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

I would like to know, what can I possibly do to solve this problem?

My app is a complete native app, using Java/Kotlin and XML/Jetpack Compose


Solution

  • First and foremost, it's important to see that they've included a Migration link in the warning. So we need to migrate the Tasks class as per that

    Later, we can split the monolithic play-core SDK into the required dependencies, as per the app requirement. The alternative SDKs can be found here

    In my case, had to get the In-App Review and In-App updates SDK, seperately

    EDIT:

    For hybrid apps, we can go the android folder

    cd android
    

    And run the following command to check all the dependencies listed in the app, and check which one has the com.google.android.play:core dependency, by exporting all the dependencies to a text file dependencies.txt

    ./gradlew app:dependencies > dependencies.txt
    

    Once you figure out, which of your dependencies uses the play core library, you can actually update it