react-native-community / cli

React Native command line tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Execution failed for task ':app:buildCMakeDebug[x86]'

code-hasaki opened this issue · comments

Environment

info Fetching system and libraries information...
System:
OS: Windows 10 10.0.18363
CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Memory: 7.93 GB / 15.87 GB
Binaries:
Node:
version: 20.11.1
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 4.1.1
path: C:\Program Files\nodejs\yarn.CMD
npm:
version: 10.2.4
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
Android NDK: 22.1.7171670
Windows SDK:
AllowDevelopmentWithoutDevLicense: Disabled
AllowAllTrustedApps: Enabled
Versions:
- 10.0.18362.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.8.34511.84 (Visual Studio Community 2022)
Languages:
Java: 17.0.10
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.6
wanted: 0.73.6
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not found

Description

image
Execution failed for task ':app:buildCMakeDebug[x86]'.

Unable to delete file 'G:\Dev\ReactNative\AwesomeProject\android\app\build\intermediates\cxx\Debug\3w702xfp\obj\x86'

npx react-native@latest init AwesomeProject --skip-install
cd AwesomeProject
yarn install
yarn start
The project works well

delete AwesomeProject dir
npx react-native@latest init AwesomeProject --skip-install
open file "AwesomeProject/android/gradle.properties", change "newArchEnabled=false" to "newArchEnabled=true"
cd AwesomeProject
yarn install
yarn start
Execution failed for task ':app:buildCMakeDebug[x86]'.

image

image

Sometimes, Execution failed for task ':app:buildCMakeDebug[arm64-v8a]'.
Sometimes, Execution failed for task ':app:buildCMakeDebug[x86]'.

hey, i see that there's Unable to delete file... log warning, are you sure there are right permissions granted for right folders? just a random thought that it can cause an issue - @cortinico might help? 🙏

Closing as duplicate of facebook/react-native#43544

hey, i see that there's Unable to delete file... log warning, are you sure there are right permissions granted for right folders? just a random thought that it can cause an issue - @cortinico might help? 🙏

Hi, I downgraded the yarn from version 4.1.1 to 1.22.19, The error disappeared. It seems like newArch(or cli) incompatible with yarn4.