无法在 Windows 上设置 React Native 项目 [英] Not able to setup React native project on windows
问题描述
您好,我已按照
在第二步中,我应该在
添加环境变量C:\Android\tools\bin\platform-tools"
但是Android中没有tools文件夹,我发现SDK下面的platform-tools是位置
C:\Users\AKSHAY\AppData\Local\Android\Sdk\platform-tools"
现在当我跑步时
<块引用>npx react-native 运行 android
我收到以下附加错误
这里是SDK文件夹请帮忙.
您要查找的路径位于:C:\Users\"yourUser"\AppData\Local\Android\Sdk\platform-tools
Hi I have followed the official documentation for setting up the React native project on windows. I have added the ANDROID_HOME variable as system variable at location
"C:\Users\AKSHAY\AppData\Local\Android\Sdk"
In the second step I was supposed to add Environment variable at
"C:\Android\tools\bin\platform-tools"
but there is no tools folder in Android instead I found platform-tools under SDK below is the location
"C:\Users\AKSHAY\AppData\Local\Android\Sdk\platform-tools"
Now when I am running
npx react-native run android
I am getting the below attached error
Here is the SDK folder Please help.
The path you are looking for is located at : C:\Users\"yourUser"\AppData\Local\Android\Sdk\platform-tools
这篇关于无法在 Windows 上设置 React Native 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!