React Native 项目 - 由于 NDK 导致构建失败

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

我正在开发我的新 React Native 项目。它运行良好,我安装了用于反应导航的 npm 包。之后我运行我的项目,它给了我这个错误

error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project 
':react-native-screens'. > [CXX1101] NDK at C:\Users\haide\AppData\Local\Android\Sdk\ndk\26.1.10909125 did not have a source.properties file * 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 1s.
info Run CLI with --verbose flag for more details.

enter image description here

谁能告诉我这里出了什么问题吗?我在 React Native 上工作了 5 或 6 个月后,不知道这个问题是什么。

android reactjs react-native android-ndk
1个回答
0
投票

我在Thomasino73

的帮助下解决了这个问题

我只是从 android studio 安装 NDK。

enter image description here

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