flutter-ml / google_ml_kit_flutter

A flutter plugin that implements Google's standalone ML Kit
MIT License
942 stars 719 forks source link

Report 'Update your Play Core Maven dependency' warning when packaging and listing using plugins #660

Open hhzhangzy opened 1 month ago

hhzhangzy commented 1 month ago

Use google_mlkit_barcode_scanning(0.12.0) and google_mlkit_text_recognition(0.13.0),When the engineering code was packaged in aab format and submitted for listing on the Google Play Market, a warning appeared as shown in the picture: 企业微信截图_17222537804128

+--- com.google.mlkit:playstore-dynamic-feature-support:16.0.0-beta2 | +--- com.google.android.datatransport:transport-api:2.2.1 -> 3.0.0 () | +--- com.google.android.datatransport:transport-backend-cct:2.3.3 -> 3.1.9 () | +--- com.google.android.datatransport:transport-runtime:2.2.6 -> 3.1.9 () | +--- com.google.android.gms:play-services-base:18.0.1 -> 18.1.0 () | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.2.0 () | +--- com.google.android.play:core:1.10.0 | +--- com.google.firebase:firebase-components:16.1.0 -> 17.1.5 () | --- com.google.mlkit:common:18.0.0 -> 18.9.0 (*)

How to update the SDK to resolve this warning?

hhzhangzy commented 1 month ago

Is it caused by an additional dependency on 'implementation 'com.google.mlkit:playstore-dynamic-feature-support:16.0.0-beta2' ?

priyaa29 commented 1 month ago

Any update in this facing same issue --- Update your com.google.android.play:core:1.10.0 Maven dependency to an Android 14 compatible version! Your current com.google.android.play:core:1.10.0 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. Please can anyone help with it if it is resolved.

fbernaly commented 1 month ago

I do not have an ETA, but you are welcome to send a PR with your contribution. Contributions are always welcome and more likely to be reviewed, merged and release in a new version.

bensonarafat commented 1 month ago

@hhzhangzy @priyaa29 None of these dependencies are used in this package, are you sure it from this package

+--- com.google.mlkit:playstore-dynamic-feature-support:16.0.0-beta2 | +--- com.google.android.datatransport:transport-api:2.2.1 -> 3.0.0 () | +--- com.google.android.datatransport:transport-backend-cct:2.3.3 -> 3.1.9 () | +--- com.google.android.datatransport:transport-runtime:2.2.6 -> 3.1.9 () | +--- com.google.android.gms:play-services-base:18.0.1 -> 18.1.0 () | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.2.0 () | +--- com.google.android.play:core:1.10.0 | +--- com.google.firebase:firebase-components:16.1.0 -> 17.1.5 () | --- com.google.mlkit:common:18.0.0 -> 18.9.0 (*)

priyaa29 commented 1 month ago

@hhzhangzy @priyaa29 None of these dependencies are used in this package, are you sure it from this package

+--- com.google.mlkit:playstore-dynamic-feature-support:16.0.0-beta2 | +--- com.google.android.datatransport:transport-api:2.2.1 -> 3.0.0 () | +--- com.google.android.datatransport:transport-backend-cct:2.3.3 -> 3.1.9 () | +--- com.google.android.datatransport:transport-runtime:2.2.6 -> 3.1.9 () | +--- com.google.android.gms:play-services-base:18.0.1 -> 18.1.0 () | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.2.0 () | +--- com.google.android.play:core:1.10.0 | +--- com.google.firebase:firebase-components:16.1.0 -> 17.1.5 () | --- com.google.mlkit:common:18.0.0 -> 18.9.0 (*)

In this package, it is currently set to minSdkVersion: 21, targetSdkVersion: 33, and compileSdkVersion: 34. I'm trying to change it to targetSdkVersion: 34 and compileSdkVersion: 34. I'm using OCR detection with TextDetector, and I tried removing the implementation 'com.google.mlkit:playstore-dynamic-feature-support:16.0.0-beta2' from the build.gradle file, but nothing is working. The Play Console is not allowing me to upload the bundle. If the error is not related to this package, is there a way to check which package is affected? Please let me know.

bensonarafat commented 1 month ago

@priyaa29 This seems to be a transitive dependency and coming from com.google.mlkit:playstore-dynamic-feature-support:16.0.0-beta2

This was not added to the library so this warning is completely up to Google

github-actions[bot] commented 7 hours ago

This issue is stale because it has been open for 30 days with no activity.