ADB命令不能在Linux环境中发现能在、命令、发现、环境

2023-09-12 08:47:48 作者:活有余罪

在实施内部G1设备BluetoothChat应用.apk文件,它总是弹出一个消息:

While implementing the BluetoothChat application .apk inside G1 device, it always pops up a message:

$adb install -r /home/parveen/workspace/BluetoothChat/bin/BluetoothChat.apk 
-bash: adb: command not found

我没有得到清楚为什么这个错误是每次弹出。 请帮我。

I am not getting clearly why this error is popping up every time. Please help me.

在此先感谢。 Praween

Thanks in advance. Praween

推荐答案

我找到了解决我的问题。在我的〜/ .bashrc:

I found the solution to my problem. In my ~/.bashrc:

导出PATH = $ PATH {}:/路径/到/ Android的SDK /工具

不过,亚行不位于工具/,而在平台的工具/。 所以我增加了以下

However adb is not located in the tools/, rather in platform-tools/. So I added the following

导出PATH = $ PATH {}:/路径/到/ Android的SDK /工具:/路径/要/安卓/平台工具

这解决了我的问题。