我的系统是在mac10.8.2,64位系统,在官方下载了adt bundle了后,按他的提示,这个adt bundle包已经包含了adt和eclipse了,我设置了环境变量后,命令提示符下查看java -version,adt -version都没有问题了,但是打开eclipse后,新建工程提示R文件找不到,具体是这么提示的:
[2013-07-07 21:06:52 - adb] Unexpected exception 'Cannot run program "/Users/chenxx/安卓/相关软件/adt-bundle-mac-x86_64-20130522/sdk/platform-tools/adb": error=2, No such file or directory' while attempting to get adb version from '/Users/chenxx/安卓/相关软件/adt-bundle-mac-x86_64-20130522/sdk/platform-tools/adb'
可见adb有问题,提示找不到版本,但是我找到/Users/chenxx/安卓/相关软件/adt-bundle-mac-x86_64-20130522/sdk/platform-tools/adb',然后双击这个文件,也能正常打开啊
求救,问题出在哪了呢?
------解决方案--------------------
http://www.th7.cn/Program/Android/201303/130263.shtml
看看这个
可能就是mac64位的原因,我这里mac上跑起来了
------解决方案--------------------
楼主的路径尽量不要用中文,否则很可能会出问题
------解决方案--------------------
设置你的eclipse这些环境的时候,路径里不要有汉字和空格!这个都会引起报错的!
根据你的提示在platform里面adb 工具路径问题
没有mac电脑,所以不知道你有没有类似于xp的终端
你如果配置路径没问题的话,adb 应该有打印信息的,如下(部分):
Android Debug Bridge version 1.0.31
-d - directs command to the only connected
e
returns an error if more than one USB
present.
-e - directs command to the only running em
returns an error if more than one emul
unning.
-s <specific device> - directs command to the device or emula