I’m facing an issue while building an Expo Android project. When I attempt to run the app using either npx expo run:android
or eas build
, I encounter the following error:
> Task :expo-modules-core:configureCMakeDebug[arm64-v8a] FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':expo-modules-core:configureCMakeDebug[arm64-v8a]'.
> [CXX1210] /home/shivanshu/Web & App Dev/gamernetworx/node_modules/expo-modules-core/android/CMakeLists.txt debug|arm64-v8a : No compatible library found
* 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 9m 48s
280 actionable tasks: 184 executed, 92 from cache, 4 up-to-date
Error: /home/shivanshu/Web & App Dev/gamernetworx/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64,arm64-v8a exited with non-zero code: 1
Error: /home/shivanshu/Web & App Dev/gamernetworx/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64,arm64-v8a exited with non-zero code: 1
at ChildProcess.completionListener (/home/shivanshu/Web & App Dev/gamernetworx/node_modules/@expo/spawn-async/build/spawnAsync.js:42:23)
at Object.onceWrapper (node:events:632:26)
at ChildProcess.emit (node:events:517:28)
at maybeClose (node:internal/child_process:1098:16)
at ChildProcess._handle.onexit (node:internal/child_process:303:5)
...
at spawnAsync (/home/shivanshu/Web & App Dev/gamernetworx/node_modules/@expo/spawn-async/build/spawnAsync.js:7:23)
at spawnGradleAsync (/home/shivanshu/Web & App Dev/gamernetworx/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:96:48)
at assembleAsync (/home/shivanshu/Web & App Dev/gamernetworx/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:74:18)
at runAndroidAsync (/home/shivanshu/Web & App Dev/gamernetworx/node_modules/@expo/cli/build/src/run/android/runAndroidAsync.js:45:37)
Environment:
Expo SDK Version: 51
Node.js Version: 18.19.1
Npm Version: 9.2.0
Operating System: Kali Linux
Expected
The Android app should build successfully and launch on an emulator or connected device.