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
App does not compile on Android "compileReleaseJavaWithJavac" #3385
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. |
Hey @Humad 👋 |
following. Having the same issues |
主工程添加:
|
where to add this? |
Also having this error. Anyone found a fix yet? |
Following |
I followed these directions months ago, but now I need to do it again and the links are dead.... :( |
Yeah this crash seems to have appeared again in the last day or so. I have no idea why. @xtdhwl's fix was working just fine until 2 days ago and now I'm seeing this same exact crash again. |
@piaskowyk can you please link to your "fast fix" again? |
@smadan here is the fix file for 63. I am on RN 70 and running into this same bug. |
@andrew-schenk will your change work for RN0.69.6 as well? |
@andrew-schenk That does not work anymore. |
Yeah, I believe the files have changed names / locations in subsequent releases. Tried this manually on 0.65 and it didn't look like it was going to work |
Linking this issue to the one I just opened. They seem related, possibly duplicates. If they are, sorry for splitting the discussion: |
There is some logic in react-native-reanimated/android/build.gradle Lines 549 to 553 in d665dcf
Still not sure why it broke compiling without any changes on our end. |
Today the issue is active again on our CI.... Yesterday all builds were green, but today without any changes builds fails. Error is now 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. |
Have a look at #3743 (comment) and also at related discussion linked in RN bug report. |
I noticed that react-native-reanimated 2.12.0 uses React-Native 70+ and React 17 so I had to upgrade to those versions. Still working through all of the extra work that entails |
Hey, is this issue still happening? |
I honestly upgraded to react native 71.7 and reanimated v3. This is no longer an issue for me. |
@ucheNkadiCode thanks for confirming that it works now 🙌 |
Fixed it. Use Jdk-17 instead. Jdk 21 is buggy. soon after I switched it started working properly |
This fixed the issue for me |
Description
I'm trying to build the app by doing
./gradlew assemblerelease
. I now get an error message.Expected behavior
App builds successfully
Actual behavior & steps to reproduce
App fails to build.
Here is the log:
Snack or minimal code example
Package versions
Affected platforms
The text was updated successfully, but these errors were encountered: