react-native-screen build failed on linux, react-native-screens/android/CMakeLists.txt debug|arm64-v8a : No compatible library found #2246
Unanswered
ravindra21
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
so im trying to build simple react navigation in linux os using react-native-screen library as mentioned in the react native documentation
but when i run
npx react-native run-android
always failed when in the executing state
so i switch to windows os, then run npx react-native run-android again, the build was successfull
what i was tried :
my thought about the bug :
this is my path variable :
/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/kali/Programs/postman:/home/kali/Programs/flutter/bin:/home/kali/Android/Sdk/platform-tools:/usr/lib/jvm/java17/bin:/usr/local/android-studio/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
# export PATH=/home/kali/Android/Sdk/tools:/usr/lib/jvm/java17/bin:/usr/local/android-studio/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
react native doctor
──(kali㉿kali)-[~/Public/AndroidStudioProjects/aa]
└─$ npx react-native doctor
Common
✓ Node.js - Required to execute JavaScript code
✓ yarn - Required to install NPM dependencies
● Metro - Metro Bundler is not running
Android
✖ Adb - No devices and/or emulators connected. Please create emulator with Android Studio or connect Android device.
✓ JDK - Required to compile Java code
✓ Android Studio - Required for building and installing your app on Android
✓ ANDROID_HOME - Environment variable that points to your Android SDK installation
✓ Gradlew - Build tool required for Android builds
✓ Android SDK - Required for building and installing your app on Android
Errors: 1
Warnings: 1
Usage
› Press f to try to fix issues.
› Press e to try to fix errors.
› Press w to try to fix warnings.
› Press Enter to exit.
the error message :
┌──(kali㉿kali)-[~/Public/AndroidStudioProjects/aa]
└─$ npx react-native run-android
info Installing the app...
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Note: /home/kali/Public/AndroidStudioProjects/aa/node_modules/react-native-safe-area-context/android/src/paper/java/com/th3rdwave/safeareacontext/NativeSafeAreaContextSpec.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/kali/Public/AndroidStudioProjects/aa/node_modules/react-native-screens/android/src/paper/java/com/swmansion/rnscreens/NativeScreensModuleSpec.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
Execution failed for task ':react-native-screens:configureCMakeDebug[arm64-v8a]'.
BUILD FAILED in 11s
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Note: /home/kali/Public/AndroidStudioProjects/aa/node_modules/react-native-safe-area-context/android/src/paper/java/com/th3rdwave/safeareacontext/NativeSafeAreaContextSpec.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/kali/Public/AndroidStudioProjects/aa/node_modules/react-native-screens/android/src/paper/java/com/swmansion/rnscreens/NativeScreensModuleSpec.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details. FAILURE: Build failed with an exception. * What went wrong:
Execution failed for task ':react-native-screens:configureCMakeDebug[arm64-v8a]'.
Beta Was this translation helpful? Give feedback.
All reactions