When attempting to build an Android app using Flutter with the 'flutter-amazonpaymentservices' package, I encountered an issue. However, when I proceeded with the build without utilizing this package, the build was successful.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:checkReleaseDuplicateClasses'.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class androidx.lifecycle.ViewModelLazy found in modules jetified-lifecycle-viewmodel-ktx-2.2.0-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0) and lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1)
When attempting to build an Android app using Flutter with the 'flutter-amazonpaymentservices' package, I encountered an issue. However, when I proceeded with the build without utilizing this package, the build was successful.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:checkReleaseDuplicateClasses'.
Go to the documentation to learn how to Fix dependency resolution errors.
Try: