adb devices 命令没有显示任何内容
目前我正忙于Android SDK。我让它工作了,但是当我进入 $sudo adb
shell 时。它给出了sudo:adb:找不到命令
。对于这个问题,我检查了此链接: adb devices 命令不起作用 但是如果我输入 $现在 sudo adb devices 。注意到发生了。
甚至 *daemon 也没有运行。现在启动它的端口 5037 * 和其余的。但它看起来像这样:
michiel@ubuntu: ~$ sudo adb devices
michiel@ubuntu: ~$
所以我可以输入下一个命令。有人知道如何解决这个问题吗?与 $sudo adb shell 相同。什么也没有出现。
当我在没有 sudo 的情况下输入 adb devices 时。我收到错误:
-bash: /usr/local/sbin/adb: No such file or directory.
但它就在那里!
echo $PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/michiel/jdk1.6.0_29/bin:home/michiel/android-sdk-linux/tools:/home/michiel/android-sdk-linux/platform-tools
编辑
当我现在启动 Eclipse 时,出现下一个错误: Failed to get the adb version: Cannot run program"/home/michiel/android-sdk-linux/platform-tools/adb":java.io.IOException :error=2,没有这样的文件或目录。
已解决
上周末我安装了 Ubuntu 的全新安装。我下载了 ia32.lib 和 openjdk 而不是 java jdk 并手动安装。经过一番努力,我成功连接了设备,现在我可以看到它了。感谢您的帮助:)
At the moment I'm busy with the Android SDK. I got it working, but when I entered $sudo adb
shell. It gave sudo: adb: command not found
. For this problem I checked this link: adb devices command not working But if I enter $sudo adb devices now. Noting happens.
Not even *daemon not running. starting it now op port 5037 * and the rest. But it looks like this:
michiel@ubuntu: ~$ sudo adb devices
michiel@ubuntu: ~$
So I can enter the next command. Someone knows how to fix that? It's the same with $sudo adb shell. Nothings comes up.
When I enter adb devices without the sudo. I get the error:
-bash: /usr/local/sbin/adb: No such file or directory.
But it's there!
echo $PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/michiel/jdk1.6.0_29/bin:home/michiel/android-sdk-linux/tools:/home/michiel/android-sdk-linux/platform-tools
Edit
When I start Eclipse now, I get the next error: Failed to get the adb version: Cannot run program"/home/michiel/android-sdk-linux/platform-tools/adb":java.io.IOException:error=2, No such file or directory.
SOLVED
Last weekend I installed a clean install of Ubuntu. I downloaded the ia32.lib and openjdk
instead of java jdk and install is manually. After some struggling I managed to connect the device and now I can see it. Thx for the help :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我前两天也遇到了这个问题,我搜索了又搜索,发现我的ubuntu是64位的,而adb与ubuntu 64位不匹配,所以我在终端中使用了以下命令:
我的问题解决了
不要忘记,您应该导出您的 java-version-sdk。
I also had this problem two days ago and I searched and searched so I found that my ubuntu is 64-bit and adb is not match to ubuntu 64-bit so I used the below command in terminal:
and my problem was solved
don't forget, you should export your java-version-sdk.
尝试在 .bashrc 文件末尾添加以下内容(可以在主目录中找到):
现在使用不带 sudo 的 adb 命令。这为我解决了问题。
哈!
Try adding the following at the end of your .bashrc file (can found in your home directory):
Now use the adb command without sudo. This solved the problem for me.
HTH!
尝试杀死&启动adb服务器
cmd
adb Kill-server
adb start-server
try to kill & start the adb server
cmd
adb kill-server
adb start-server
我认为您正在 Linux 平台上运行,因此运行的二进制文件后面将跟着 .
I think you are running on the linux platform so for that running binary will be followed by .