-
-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android build failure 3.27.0 #1947
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Snack or a link to a repository section. |
Hey @bhandanyan-nomad, would you mind providing your dependencies list? (Full reproduction would be even better...) |
Same issue.. And I can confirm that rolling back to 3.26.0 fixes the issue for me. |
@exotexot thanks for confirming the issue! Unfortunately we still cannot do much without a repro - in our case our example apps are building correctly. |
3.25.0 is fine for me, but both 3.26.0 and 3.27.0 result in this error. Possibly too tightly specifying native dependencies here? |
Hi! I'm also unable to build the android version of my app.
Here's a list of the deps I'm working with:
Hope this is useful! :D |
My teammate reported that upgrading kotlin from 1.7.x to 1.8.0 did the trick for him. We ended up reverting to RNS 1.25.0 but would be happy to verify with 1.27.0. |
I believe there is a conflict with Reverting to 3.26.0 fixes the issue. |
Hi guys! I've managed to reproduce this problem (after a long battle with configuring the exact same environment 😅). Could you please check if the version from this branch resolves your issue? Just change the version of react-native-screens in your package.json to: "react-native-screens": "software-mansion/react-native-screens#@tboba/fix-screens-327", Thanks! |
@tboba thank you for taking on this issue! 🙌 We bumped into this issue because of a user on iOS 17.2 Beta reported crashes. It seems related to this issue, which appears to be fixed, but hasn't been officially released. Could you please consider releasing these two fixes soon? 🙏 When can we expect the new version to be available? Thanks once again! 🌟 |
This seems to fix the build for my project |
@azayneeva @bhandanyan-nomad thanks for confirming this branch fixes this bug! I'll raise the PR tomorrow 🙏 |
## 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]>
|
…-mansion#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 software-mansion#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]>
Description
Android failing on the new version. Different error message than the failure on prior version.
Steps to reproduce
Install 3.27.0 and build android
Snack or a link to a repository
Screens version
3.27.0
React Native version
0.70.13
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: