Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Android): Fix error about duplicate class ViewModelLazy (#1977)
## Description Users are reporting that they are receiving error while building their project with react-native-screens 3.27.0: ``` > 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.0-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.0) ``` This error is fairly easy to fix and is related to the wrong imports of dependencies in gradle. Closes #1947. ## Changes - Added import for `lifecycle-viewmodel` and `lifecycle-viewmodel-ktx` (these two imports are necessary, as `lifecycle-viewmodel` evokes error for `lifecycle-viewmodel-ktx`. ## Checklist - [ ] Ensured that CI passes --------- Co-authored-by: Kacper Kafara <[email protected]> Co-authored-by: Kacper Kafara <[email protected]>
- Loading branch information