Version
0.2.4
Problem Area
react-native-pytorch-core (core package)
Steps to Reproduce
Create empty project
$ npx react-native init AwesomeTSProject
$ cd AwesomeTSProject
Add PlayTorch to Existing App
$ yarn add react-native-pytorch-core
Additional steps on Android
- rewrite ./android/gradle.properties and ./android/app/build.gradle
Running
$ npx react-native start
$ npx react-native run-android
Expected Results
I expect the build to complete and the Android emulator to launch, but the following error occurs.
BUILD FAILED in 1m 14s
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* Where:
Build file '/AwesomeTSProject/node_modules/react-native-pytorch-core/android/build.gradle' line: 132
* What went wrong:
A problem occurred evaluating project ':react-native-pytorch-core'.
> Expected directory '/AwesomeTSProject/android/../node_modules/react-native/android' to contain exactly one file, however, it contains no files.
This is likely related to a significant fix regarding RNGP that occurred in React Native 0.71.
I attempted to modify the CMake files of react-native-pytorch-core, taking reference from the React Native 0.71 compatibility implementation carried out by react-native-vision-camera.
However, the build failed due to compatibility issues with the fbjni 0.2.2 version.
If there is anything I can do to help, please let me know.
Code example, screenshot, or link to repository
No response
Version
0.2.4
Problem Area
react-native-pytorch-core (core package)
Steps to Reproduce
Create empty project
Add PlayTorch to Existing App
Additional steps on Android
Running
Expected Results
I expect the build to complete and the Android emulator to launch, but the following error occurs.
This is likely related to a significant fix regarding RNGP that occurred in React Native 0.71.
I attempted to modify the CMake files of react-native-pytorch-core, taking reference from the React Native 0.71 compatibility implementation carried out by react-native-vision-camera.
However, the build failed due to compatibility issues with the fbjni 0.2.2 version.
If there is anything I can do to help, please let me know.
Code example, screenshot, or link to repository
No response