Skip to content

[RN 0.71.0 build error] Expected directory '.../node_modules/react-native/android' to contain exactly one file, however, it contains no files #3

@tolgahan-arikan

Description

@tolgahan-arikan

Hey there, thanks a lot for all the work on this 🙏

I came across the following when I updated a project to 0.71.0 when building android:

* Where:
Build file '.../node_modules/react-native-random-values-jsi-helper/android/build.gradle' line: 172

* What went wrong:
A problem occurred evaluating project ':react-native-random-values-jsi-helper'.
> Expected directory '.../node_modules/react-native/android' to contain exactly one file, however, it contains no files.

seems to be related to react-native-community/discussions-and-proposals#508

also, they added this to react-native/android/README.md

Screenshot 2023-01-19 at 05 49 33

I tried to fix it, but then came across another issue related to CMakeLists.txt,
[CMake Error: The following variables are used in this project, but they are set to NOTFOUND] for REACT_NATIVE_JNI_LIB and JSI_LIB

probably was trying the wrong thing. 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions