React native 反应本机生成过程失败

React native 反应本机生成过程失败,react-native,React Native,我是第一次构建我的应用程序。 我不得不删除我的app/src/main/res/文件夹中的所有内容,因为我遇到了另一个问题。这有关系吗 我也可能在尝试修复构建时意外删除了此文件 为什么会发生此错误以及如何修复它 [编辑] 我做了一些搜索,似乎我删除了mipmap文件夹。这个文件夹是什么?我如何替换它 > Task :app:stripReleaseDebugSymbols UP-TO-DATE Compatible side by side NDK version was not foun

我是第一次构建我的应用程序。 我不得不删除我的
app/src/main/res/
文件夹中的所有内容,因为我遇到了另一个问题。这有关系吗

我也可能在尝试修复构建时意外删除了此文件

为什么会发生此错误以及如何修复它

[编辑] 我做了一些搜索,似乎我删除了mipmap文件夹。这个文件夹是什么?我如何替换它

> Task :app:stripReleaseDebugSymbols UP-TO-DATE
Compatible side by side NDK version was not found.

> Task :app:processReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
 /Users/charbel/Desktop/AwesomeProject/android/app/src/main/AndroidManifest.xml:6:5-25:19: AAPT: error: resource mipmap/ic_launcher (aka com.awesomeproject:mipmap/ic_launcher) not found.
     
 /Users/charbel/Desktop/AwesomeProject/android/app/src/main/AndroidManifest.xml:6:5-25:19: AAPT: error: resource mipmap/ic_launcher_round (aka com.awesomeproject:mipmap/ic_launcher_round) not found.
     
 /Users/charbel/Desktop/AwesomeProject/android/app/src/main/AndroidManifest.xml:6:5-25:19: AAPT: error: resource style/AppTheme (aka com.awesomeproject:style/AppTheme) not 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 19s

检查节点模块,看起来所有模块都没有正确安装。 您应该运行-npm install/npm update来安装所有相关的节点模块


您还可以使用--info和--debug运行,以检查确切的错误。

看起来我不小心删除了图标文件夹,我创建了一个新项目,然后将它们移到了它们所属的位置
react native init newproject

cp-R android/app/src/main/res/*../project/android/app/src/main/res/