Duplicate class com.google.android.play.core.appupdate.AppUpdateInfo found in modules jetified-app-update-2.0.1-runtime
danielmessi13 opened this issue · comments
Describe the bug
There is a deprecated implementation in build.gradle that conflicts with other packages that use updated implementations. I'm not sure that's the reason, but it appears to be.
The Play Core Java and Kotlin Library has been partitioned into multiple per-feature Android libraries. This reduces the size Play Core libraries add to your app and allows for faster release cycles of the individual features.
https://developer.android.com/guide/playcore#java-kotlin-in-app-review
To Reproduce
Steps to reproduce the behavior:
- Add
in_app_update
package - Add
rate_my_app
package - Try run in Android
Smartphone:
- Device: Android Pixel 4
- OS: Android 12
- Version: API 31
Additional context
I did a test update and it worked:
change this:
implementation 'com.google.android.play:core:1.8.0'
to
implementation 'com.google.android.play:review:2.0.1'
implementation 'com.google.android.play:review-ktx:2.0.1'
I created a PR solving this, in case I see that it makes sense and doesn't bring any problems to the package
Hello @Skyost,
I was wondering if it would be possible for you to release a new version on pub.dev to fix this problem. Thank you in advance for your help!
Best regards,
Yes, for sure. I also have to release a new version of FlutterWeekView. I'll do it tomorrow.