callstack / react-native-slider

React Native component exposing Slider from iOS and SeekBar from Android
MIT License
1.19k stars 267 forks source link

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

Closed fractalscape13 closed 5 months ago

fractalscape13 commented 5 months ago

Environment

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

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.

BartoszKlonowski commented 5 months ago

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 commented 5 months ago

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

Crhis35 commented 5 months ago

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 commented 5 months ago

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
euliveiras commented 5 months ago

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