无法在 Windows 上设置 React Native 项目 [英] Not able to setup React native project on windows

查看:68
本文介绍了无法在 Windows 上设置 React Native 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我已按照

在第二步中,我应该在

添加环境变量

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆