-
-
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
RN 0.61 Android build fails #399
Comments
Closing as of #395 |
So add |
It didn't work in our case, not that it's particularly helpful for you, since it might work in your project! |
@inferusvv It is a workaround that might work for you if you were in a similar situation to me: my build was working with RN 0.60.5 but not after upgrading to RN 0.61 using the The long-term solution is for the library to support AndroidX, which it appears was merged in #395 and will presumably be in the next release. |
Confirming I had this issue, as well, upgrading from RN 0.60.5 > 0.61.1 and readding |
Could someone explain, why |
I already have the supportLibVersion in my build.gradle but i am still getting these build errors on RN 0.61.2 Logs
|
I am still facing this. My package.json:
Command used to run:
I also get the same issue when updating I managed to fix this by adding this into my
|
None of the fix above fixed it for me, I'm using expo navigation and it recommends and installed ~1.1.0. IF I install 1.4.0 it will show error or warning that doesn't look good, but the bug is still there. |
For me, the build failed because I still had the code suggested in this comment in my |
@lbornov2 Oh my god, thank you. This solved my issue. |
Using RN 0.62.2 and reanimated version 1.8 I still had the error and had to use the fix @lbornov2 mentioned. so maybe the problem isn't solved completely yet? |
i am also having this issue. RN version is 0.62 |
I'm also having the same issue with RN 0.62 and reanimated version 1.8 |
@aminify, @amilaDulanjana, @neeshsilva, @v1b3m Could you guys include example repository which will repro this? We can't do anything about it without reproducing it locally. |
RN 0.62.2 and reanimated 1.9.0 |
As for me, I made a stupid mistake of looking at v2 documentation when I have 1.13 installed LOLs |
@lbornov2 saved my ass:
|
I removed the following lines from import com.facebook.react.bridge.JSIModulePackage;
import com.swmansion.reanimated.ReanimatedJSIModulePackage;
@Override
protected JSIModulePackage getJSIModulePackage() {
return new ReanimatedJSIModulePackage();
} |
@pandevim is your solution OK? seems like you are getting no errors by removing all references but not by fixing it. |
Still getting this error on Added
in Can someone please help? |
This likely has to do with AndroidX or other things of which I am somewhat ignorant, but here's what I can share:
I had react-native-reanimated working fine in my RN 0.60.5 app. Today I tried to upgrade to RN 0.61, and the Android build (via
react-native run-android
) stopped working. It gave an error message like this:I examined the changes to the android directory of the RN template that occurred between 0.60.5 and 0.61, and this one looks relevant: facebook/react-native#25810
When I re-add the
supportLibVersion
line to my android/build.gradle, the build seems to work again. I'm not sure if this is proper or if it implies something is going wrong with the jetify process for this library.The text was updated successfully, but these errors were encountered: