I use react-native 0.69.7
, got this email:
com.google.android.play:core has added this note for core:1.9.0:
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:
https://developer.android.com/guide/playcore#playcore-migration
here is my package.json
file:
package.json
I tried following the doc but it doesn’t work, is there any solution for react-native
?
4
Answers
Did you fix this issue ?
Thanks
Just wanted to know if my understanding about this issue is right. Will any third party used in the app be using any Android 14 incompatible play service dependency? (Sorry to add this as answer. It’s because i dont have enough stack overflow reputation points in order to add a comment)
The issue should be at build.gradle app level, probably you miss the migration to Play Core:
https://developer.android.com/guide/playcore?hl=it#groovy
For example I had the same issue with an Android Native application, I had the play dependencies like the following:
Which I replace with:
In our case,
com.google.android.play:core
was a transitive dependency. This means it was included indirectly through another library. To resolve this, we needed to identify which dependency was using it and update that dependency to the latest version.Steps to Identify the Dependency Using
com.google.android.play:core
:Navigate to the Android Folder:
Open a terminal and navigate to the
android
directory of your React Native project:Run the Gradle Dependencies Command:
Execute the following command to generate a list of all dependencies and their transitive dependencies:
Search for
com.google.android.play:core
:dependencies.txt
file and search forcom.google.android.play:core
to find which library is including it.Example:
In our project, we found that the library
sp-react-native-in-app-updates
was usingcom.google.android.play:core
as a transitive dependency:After identifying the dependency, we updated
sp-react-native-in-app-updates
to its latest version to ensure it uses the latest version ofcom.google.android.play:core
.