-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Java patch doesn't seem to be applied when building from cache #3138
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snippet of code, a snack or a link to a GitHub repository that reproduces the problem? |
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Snack or minimal code example section. |
Unfortunately I get this error even after I run I'm on RN 0.64.2 and 2.6.0. Any idea what may be going wrong? |
I'm also having this problem. |
"react-native": "0.63.4", I have same issue. |
I fixed this way.
It worked like a charm! |
im still facing error |
I manage to fix this by updating the React, react-native and babel/core versions react: 16.13.1 -> 17.0.2 I think that only updating react might solve it but I updated the 3 |
Thank you!! Worked for me |
I don't get this error anymore after upgrading both React and React Native
Probably, for Reanimated 2.5.0, React Native version should be upgraded to 0.64 or newer. |
We use RN version "0.64.2" and REA version "^2.8.0" But If do yarn install even without changing anything in package.json I see the reanimated-64.aar file not available ? I'm able to work if I use the old node modules and that's possible until I change the package.json. |
I wish I could solve this..... |
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? |
So, do we know why this works? It's about the patching not applying unless you completely re-install? I've had issues pop up with this library for months across various versions of React and React Native. Can't seem to find what the root cause is... |
Same error reproducible for our project on CI for release Android build: React v18.0.0
Locally debug and release Android build works fine. Only when we build Android app on CI with cached npm modules it throws an error. |
Description
Since I upgraded to version 2.5.0, whenever I change a dependency not related to
react-native-reanimated
and start an Android build from existing cache, theReanimatedUIImplementation.java
doesn't seem to be patched and will result in the following error:Cleaning Android build and re-building from scratch does work. However, this means that our CI cannot rely on Android build cache anymore.
Expected behavior
I should be able to re-build sucessfully from cache whenever Android project or dependency changes.
Actual behavior & steps to reproduce
Snack or minimal code example
Package versions
Affected platforms
The text was updated successfully, but these errors were encountered: