gpt4 book ai didi

android - Git Bash 上的错误 (Windows 7) : sh. exe": android: command not found

转载 作者:行者123 更新时间:2023-11-29 00:17:10 24 4
gpt4 key购买 nike

我在 Git bash 上运行 android 关键字时遇到问题,安装在 Windows 7 64 位上。

我得到的错误如下:

sh.exe": android: command not found

有人知道为什么会这样吗?

最佳答案

您需要在您的系统路径中设置 Android SDK 路径。我假设您的 sdk 位于此路径:C:\android-sdk-windows

可以通过以下方式完成:-

使用命令提示符:

set path=%path%;C:\android-sdk-windows\tools;C:\android-sdk-windows\platform-tools;

另一种方法是在您的环境变量中添加:-

My Computer->Property->Advanced->Environment Variables->Edit Path Variable and add “C:\ android-sdk-windows\tools” & “C:\ android-sdk-windows\platform-tools”into the Path Variables.

这样做是一个很好的做法,因为如果需要时总是需要在命令提示符下进入 SDK 文件夹,您会感到恼火。

关于android - Git Bash 上的错误 (Windows 7) : sh. exe": android: command not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25761179/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com