britannio / in_app_review

A Flutter plugin for showing the In-App Review/System Rating pop up on Android, IOS, and MacOS. It makes it easy for users to rate your app.
314 stars 82 forks source link

Execution failed for task ':app:checkLaunchDebugDuplicateClasses'. #85

Open user97116 opened 1 year ago

user97116 commented 1 year ago

FAILURE: Build failed with an exception.

BUILD FAILED in 2m 12s Exception: Gradle task assembleLaunchDebug failed with exit code 1 Exited (sigterm)

yevgeniaronov commented 1 year ago

i solved this issue by locking to 2.0.4, looks like this issue was introduced in 2.0.5.

qwertyway commented 6 months ago

Same issue for me. Solution from @yevgeniaronov worked, but I'd like to use latest version

qwertyway commented 6 months ago

Manged to resolve: I'm also having in-app update native android feature in the app. Managed to fix this problem by replacing build.gradle dependency 'com.google.android.play:core-ktx:1.8.1' with 'com.google.android.play:app-update-ktx:2.1.0'

Now I can use in_app_review 2.0.9 without compilation error

denghejun commented 2 months ago

i solved this issue by locking to 2.0.4, looks like this issue was introduced in 2.0.5.

But then, you will get alert from google:

Update com.google.android.play

com.google.android.play:core has added this note for core:1.10.3:

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

You may not be able to release future versions of your app with this SDK version to production or open testing.

How did you fix this?