无法删除React Native中的目录 动画或 uild 或 rm64-v8a

问题描述 投票:0回答:1

我正在尝试运行反应本机应用程序。然而,它突然给了我一个错误。我尝试重新安装一切。我尝试删除重新启动的文件夹,但它无法删除另一个文件夹。可能是什么问题?

* What went wrong:
Execution failed for task ':react-native-reanimated:prepareHeadersForPrefab'.
> Unable to delete directory 'C:\Users\x\Desktop\SearvApp\frontend\searvice_app\node_modules\react-native-reanimated\android\build\prefab-headers\reanimated'

医生:

Common
 ✓ Node.js - Required to execute JavaScript code
 ✓ yarn - Required to install NPM dependencies
 ● Metro - Metro Bundler is not running

Android
 ✓ Adb - Required to verify if the android device is attached correctly
 ✓ 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

版本:

java version "17.0.12" 2024-07-16 LTS
React Native CLI version:14.1.0
Node.js version:v20.17.0
[email protected]
gradle 8.3
Android 14 34 api

一个依赖问题:

[email protected] invalid: "^7.2.1 || ^8.1.3 || ^9.0.0" from node_modules/@reduxjs/toolkit

系统变量中的路径:

C:\Users\x\AppData\Local\Android\Sdk
C:\Program Files\Java\jdk-17
C:\Users\x\AppData\Local\Android\Sdk\platform-tools
android react-native gradle
1个回答
0
投票

我尝试重新安装所有内容,但没有任何帮助。因此,我决定也升级到 Windows 10 版本 22H2。这以某种方式解决了这个问题。

© www.soinside.com 2019 - 2024. All rights reserved.