【发布时间】:2012-11-14 07:14:07
【问题描述】:
当我从 Eclipse 运行我的 android 应用程序时,我收到了这个错误。
Unexpected exception 'Cannot run program "/home/antz/Development/adt-bundle-linux/sdk/platform-tools/adb": error=2 No such file or directory' while attempting to get adb version from /home/antz/Development/adt-bundle-linux/sdk/platform-tools/adb
从 Eclipse 错误中复制粘贴
[2012-11-26 13:43:08 - adb] Unexpected exception 'Cannot run program "/home/antz/Development/adt-bundle-linux/sdk/platform-tools/adb": error=2, No such file or directory' while attempting to get adb version from '/home/antz/Development/adt-bundle-linux/sdk/platform-tools/adb'
但是,我的 adb 正好在它说不是的位置。
出了什么问题,我该如何解决?
我 cd 进入 adb 所在的目录 (/home/antz/Development/adt-bundle-linux/sdk/platform-tools/) 并输入 adb 并显示
antz@antz-90X3A:~/Development/adt-bundle-linux/sdk/platform-tools$ ls
aapt aidl dexdump fastboot llvm-rs-cc renderscript
adb api dx lib NOTICE.txt source.properties
antz@antz-90X3A:~/Development/adt-bundle-linux/sdk/platform-tools$ adb
bash: /home/antz/Development/adt-bundle-linux/sdk/platform-tools/adb: No such file or directory
adb 是绿色的,这意味着它是一个可执行文件,对吗?
例如,dx 也是绿色的,当我在命令提示符中输入 dx 时,它可以工作... adb 有什么问题?
【问题讨论】:
-
您确定是
platform-toolds而不是platform-tools? -
/home/antz/Development/adt-bundle-linux/sdk/platform-tools/adb 里面有一个不需要的“d”!
-
对不起,这是我在这篇文章中的错字
-
你检查过文件/文件夹的权限了吗?您正在使用 linux,请确保您的用户可以实际访问该文件夹并运行 adb