运行 ndk-gdb 时找不到 adb 工具
我正在使用 ndk-build 命令构建我的 android ndk 应用程序,它工作正常,但是,当我使用 cygwin 的 ndk-gdb 命令时,我收到以下错误;
ERROR: The 'adb' tool is not in your path.
You can change your PATH variable, or use
--adb=<executable> to point to a valid one.
请帮我解决这个问题。
I am building my android ndk application by using ndk-build commend and it works fine but, when i use ndk-gdb commend from cygwin i get a following error ;
ERROR: The 'adb' tool is not in your path.
You can change your PATH variable, or use
--adb=<executable> to point to a valid one.
Please help me out to solve this problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以将此命令添加到文件:
cygwin/home//.bash_profile
You can add this commend to file:
cygwin/home/<username>/.bash_profile
它似乎是这样的,你的指令命令找不到你的adb可执行文件,
所以要么设置adb.exe的环境路径或给出你的adb的完整路径命令中的.exe..
Its seems to be like, your instruction command can't find your adb executable,
So either set environment path for adb.exe or give full path of your adb.exe in command..
另外:检查您的Android安装路径是否嵌入空格(例如
“C:\program files\Android”
)。如果是这样,您可以更改安装路径或使用“junction
”等工具(来自 SysInternals)来重定向您的安装路径。当然,您必须记住将环境路径设置为这条新路线。Additionally: check whether your Android installation path has spaces embedded (
"C:\program files\Android"
for instance). If so, you can either change your installation path or use a tool like "junction
" (from SysInternals) to redirect your installation path. Of course you'll have to remember to set your environment path to this new route.