infinitered / ignite

Infinite Red's battle-tested React Native project boilerplate, along with a CLI, component/model generators, and more!
MIT License
17.49k stars 1.39k forks source link

android build error with Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]' #2688

Closed dcboy closed 3 months ago

dcboy commented 4 months ago

Describe the bug

yarn run android with error


> Task :react-native-reanimated:configureCMakeDebug[arm64-v8a] FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]'.
> [CXX1210] /Users/xxx/D/work/xxx/xxx/node_modules/react-native-reanimated/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 35s
519 actionable tasks: 153 executed, 357 from cache, 9 up-to-date

Ignite version

9.6.3

Additional info

System platform darwin
arch x64
cpu 12 cores Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
directory react-native-yopoint-operators /Users/xxx/D/work/xxx/xxx

JavaScript (and globally-installed packages) node 18.12.1 /usr/local/bin/node
npm 8.19.2 /usr/local/bin/npm
@babel/core 7.4.3
@babel/node 7.2.2
@nestjs/cli 8.0.2
@vue/cli 3.11.0
anywhere 1.5.0
apidoc-markdown 0.2.1
apidoc-markdown2 0.3.7
apidoc 0.17.7
arco-cli 1.27.3
artillery 1.7.6
asar 2.1.0
babel-cli 6.26.0
bunyan 1.8.12
chai 4.2.0
cnpm 9.4.0
concurrently 5.2.0
conventional-changelog-cli 2.0.23
conventional-changelog 3.1.10
corepack 0.14.2
depcheck 1.4.2
eas-cli 9.0.7
eslint-plugin-import 2.19.1
eslint-plugin-prettier 3.1.2
eslint 6.8.0
evilscan 1.7.5
expo-cli 4.12.7
fsevents 2.3.1
ftp-srv 4.3.0
generator-generator 5.1.0
generator-rn-toolbox 3.14.0
gitbook-cli 2.3.2
http-server 0.12.3
imageoptim-cli 3.0.2
mocha 8.2.0
moleculer-cli 0.7.1
mosca 2.8.3
n 6.0.1
node-gyp 8.1.0
nodemon 1.18.11
npm-check 5.9.2
npm 8.19.2
pino-pretty 5.1.1
pm2 4.1.2
pnpm 8.8.0
react-devtools 4.8.1
react-native-create-library 3.1.2
react-native-git-upgrade 0.2.7
react-native-rename 2.9.0
react-native 0.62.2
spy-debugger 3.8.5
tftp 0.1.2
ts-node 9.0.0
typescript 4.3.2
typings 2.1.1
vite 4.4.11
vue-cli 2.9.6
vue-tsc 1.8.16
windows-build-tools 5.2.2
yarn-check 0.0.3
yarn 1.22.22
yo 5.0.0
yarn 1.22.19 /Users/xxx/.yarn/bin/yarn
pnpm 8.8.0 /usr/local/bin/pnpm

bun - not installed expo 51.0.8 managed expo global cli 4.12.7 Deprecated: Found 'expo-cli' installed. Please remove it. Ignite ignite-cli 9.6.3 /Users/xxx/.npm/_npx/e31027f3785124a8/node_modules/.bin/ignite ignite src build /Users/xxx/.npm/_npx/e31027f3785124a8/node_modules/ignite-cli/build Android java 17.0.10 /Users/xxx/.jenv/shims/java android home - /Users/xxx/D/AndroidSDK/android-sdk-macosx iOS xcode 15.4 cocoapods 1.11.3 /usr/local/bin/pod Tools git git version 2.23.0 /usr/local/bin/git
HanLiang920 commented 4 months ago

I also encountered the same problem

frankcalise commented 4 months ago

@dcboy @HanLiang920 can you share what run commands you are using, prebuild etc?

Are you able to reproduce in a blank expo app with reanimated added at all?

One thing to note, @dcboy, is I would remove the globally installed expo-cli as that is no longer what should be used for these commands

frankcalise commented 3 months ago

Closing due to no activity, feel free to reopen it if still experiencing the issue

Ayota-Daniel commented 2 months ago

Closing due to no activity, feel free to reopen it if still experiencing the issue

i got the same issue on kali linux

i can't even build an empty project.

my setup info : npx react-native info info Fetching system and libraries information... System: OS: Linux 6.6 Kali GNU/Linux Rolling 2024.1 CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz Memory: 9.21 GB / 15.03 GB Shell: version: "5.9" path: /usr/bin/zsh Binaries: Node: version: 20.14.0 path: ~/.nvm/versions/node/v20.14.0/bin/node Yarn: Not Found npm: version: 10.7.0 path: ~/.nvm/versions/node/v20.14.0/bin/npm Watchman: Not Found SDKs: Android SDK: Not Found IDEs: Android Studio: Not Found Languages: Java: version: 17.0.10 path: /usr/bin/javac Ruby: version: 3.1.2 path: /usr/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.74.3 wanted: 0.74.3 npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: Not found newArchEnabled: false