-
Notifications
You must be signed in to change notification settings - Fork 609
Open
Description
How frequently does the bug occur?
Always
Description
When trying to build a react-native 0.81.4 project for android with @realm/react 0.20.0 installed, build fails with the following error : /Users/{username}/code/{appname}/node_modules/react-native/sdks/hermes-engine/version.properties (No such file or directory)
I looked at my projet's node_modules/react-native-sdks/hermes-engine location and the file is indeed not there.
However it is present at my project's node_modules/@realm/react/node_modules/react-native/sdks/hermes-enginelocation.
If I copy it from node_modules/@realm/react/node_modules/react-native/sdks/hermes-engine to node_modules/react-native/sdks/hermes-engine the RN project builds fine.
Stacktrace & log output
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/sve/code/countwizapp/android/build.gradle' line: 26
* What went wrong:
A problem occurred evaluating root project 'countwizapp'.
> Failed to apply plugin 'com.facebook.react.rootproject'.
> A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
> /Users/sve/code/countwizapp/node_modules/react-native/sdks/hermes-engine/version.properties (No such file or directory)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 9s
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * Where:
Build file '/Users/sve/code/countwizapp/android/build.gradle' line: 26 * What went wrong:
A problem occurred evaluating root project 'countwizapp'.
> Failed to apply plugin 'com.facebook.react.rootproject'. > A problem occurred configuring project ':app'. > Failed to notify project evaluation listener. > /Users/sve/code/countwizapp/node_modules/react-native/sdks/hermes-engine/version.properties (No such file or directory) * Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org. BUILD FAILED in 9s.
info Run CLI with --verbose flag for more details.Can you reproduce the bug?
Always
Reproduction Steps
- Create a bare react-native 0.81.4 project
- install realm and @realm/react
- build the project with
npx react-native run-android
Version
20.2.0
What services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Android 36
Build environment
debug
Cocoapods version
No response