Skip to content
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 - C++ errors, buildCMakeDebug #594

Closed
fractalscape13 opened this issue Apr 12, 2024 · 5 comments · Fixed by #597
Closed

Android build failure - C++ errors, buildCMakeDebug #594

fractalscape13 opened this issue Apr 12, 2024 · 5 comments · Fixed by #597
Assignees
Labels
bug report Something isn't working new architecture Issue relates to react-native new architecture platform: Android Issue related to Android platform

Comments

@fractalscape13
Copy link

fractalscape13 commented Apr 12, 2024

Environment

-My project won't build for Android with 4.5.1.

  • are you using the new architecture?
    Yes

  • which version of react & react-native are you using?
    React 18.2.0
    React-Native 72.6

Description

-Install slider package (latest version)

-iOS project works as expected

-Android project fails during build with errors related to:
C/C++: error: no matching constructor for initialization of 'facebook::react::PropsParserContext'
C/C++: error: redefinition of 'RNCSliderMeasurementsManager'
C/C++: error: non-virtual member function marked 'override' hides virtual member function
FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:buildCMakeDebug[arm64-v8a]'.

    3 errors generated.
    ninja: build stopped: subcommand failed.

    C++ build system [build] failed while executing:
    /Users/joseph/Library/Android/sdk/cmake/3.22.1/bin/ninja \

@fractalscape13 fractalscape13 added the bug report Something isn't working label Apr 12, 2024
@BartoszKlonowski
Copy link
Member

Hello @fractalscape13, Thank you for reporting!
Looking at your issue I see it should be fixed by #592.
v4.5.2 will include that hotfix and will be released yet today.

@BartoszKlonowski BartoszKlonowski added this to To be analyzed in Slider-Board via automation Apr 13, 2024
@BartoszKlonowski BartoszKlonowski added platform: Android Issue related to Android platform new architecture Issue relates to react-native new architecture labels Apr 13, 2024
@BartoszKlonowski
Copy link
Member

@fractalscape13 Please check with the latest release v4.5.2.

@BartoszKlonowski BartoszKlonowski added the requires: author feedback Item requires some author's action label Apr 13, 2024
@Crhis35
Copy link

Crhis35 commented Apr 15, 2024

Hi @BartoszKlonowski , I got this error FAILED: react-native/android/app/build/intermediates/cxx/Debug/r2z3e13i/obj/arm64-v8a/libreact_codegen_RNCSlider.so with the v4.5.2

@vrnDhmn
Copy link

vrnDhmn commented Apr 17, 2024

Getting similar buildCMakeDebug error for Android
For v4.5.2

C/C++: ld: error: unable to find library -lreact_render_textlayoutmanager
C/C++: ld: error: unable to find library -lrrc_text
C/C++: ld: error: unable to find library -lrrc_textinput

@BartoszKlonowski BartoszKlonowski removed the requires: author feedback Item requires some author's action label Apr 18, 2024
@euliveiras
Copy link

euliveiras commented Apr 18, 2024

i'm getting a similar error with the android builld:

  • What went wrong:
    Execution failed for task ':react-native-community_slider:compileDebugJavaWithJavac'.
    Could not resolve all files for configuration ':react-native-community_slider:androidJdkImage'.
    Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
    > Execution failed for JdkImageTransform: /home/euliveiras/Android/Sdk/platforms/android-34/core-for-system-modules.jar.
    > Error while executing process /usr/lib/jvm/java-21-openjdk/bin/jlink with arguments {--module-path /home/euliveiras/.gradle/caches/transforms-3/b2efd9b1599c64ee71e5520b19dc895b/transformed/output/temp/jmod --add-modules java.base --output /home/euliveiras/.gradle/caches/transforms-3/b2efd9b1599c64ee71e5520b19dc895b/transformed/output/jdkImage --disable-plugin system-modules}`

expo version: ~50.0.14
react-native: 0.73.6
@react-native-community/slider: ^4.3.0

@BartoszKlonowski BartoszKlonowski moved this from To be analyzed to In Progress in Slider-Board Apr 19, 2024
@BartoszKlonowski BartoszKlonowski self-assigned this Apr 19, 2024
Slider-Board automation moved this from In Progress to Done Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something isn't working new architecture Issue relates to react-native new architecture platform: Android Issue related to Android platform
Projects
Slider-Board
  
Done
Development

Successfully merging a pull request may close this issue.

5 participants