Skip to content

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

@fractalscape13

Description

@fractalscape13

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 \

Metadata

Metadata

Labels

bug reportSomething isn't workingnew architectureIssue relates to react-native new architectureplatform: AndroidIssue related to Android platform

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions