簡體   English   中英

運行 npx react-native run-android 命令時出現 React-native android 錯誤

[英]React-native android error when running the npx react-native run-android command

Android

這是我嘗試運行 react-native 項目時遇到的錯誤

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
BUILD FAILED in 1m 58s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Make sure you have the Android development environment set up

我認為您的項目中需要 local.properties 文件,其中包含 sdk 路徑。

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM