Open johnvsmit31 opened 1 year ago
Based on the error message, it seems that the issue is related to the CMake configuration during the build process. Here are some possible steps to help you resolve the issue:
Update CMake: You can try updating CMake to the latest version by downloading and installing it from the official CMake website (https://cmake.org/download/). Once installed, make sure to update the PATH environment variable to include the new installation location.
Update NDK: You can also try updating the Android NDK to the latest version by downloading and installing it from the official Android Developers website (https://developer.android.com/ndk/downloads). Once installed, make sure to update the PATH environment variable to include the new installation location.
Add project() command: As the error message suggests, you can add a project() command to the top-level CMakeLists.txt file. You can add the following line after the cmake_minimum_required() line:
project(YourProjectName)
Make sure to replace "YourProjectName" with the actual name of your project.
Enable -Xlint:deprecation: You can try enabling the -Xlint:deprecation option by adding the following line to the android/app/build.gradle file:
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
"-Xlint:deprecation"
}
...
}
This will enable warnings for the use of deprecated APIs, which may help you identify the root cause of the issue.
Clean the project: You can try cleaning the project by running the following command:
cd android && ./gradlew clean
This will delete all build artifacts and regenerate them from scratch.
Check dependencies: Make sure that all the dependencies required by react-native-jsi-image are properly installed and configured. You can check the dependencies in the package.json file of the project.
When I install the package npm I react-native-jsi-image on android and then npx react-native run-android it fails my built and gives me this error can anyone please help me to fix this i really want to use this package 🙏 i am using react native cli with very latest version of react native
The Error: