我的系统是在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',然后双击这个文件,也能正常打开啊求救,问题出在哪了呢?

解决方案 »

  1.   

    bmw:我单独下个eclipse,然后安装adt,打开eclipse后也这么提示,google弄的东西真垃圾
      

  2.   

    http://www.th7.cn/Program/Android/201303/130263.shtml
    看看这个可能就是mac64位的原因,我这里mac上跑起来了
      

  3.   

    设置你的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
    the given
                                     serial number or qualifier. Overrides
    ERIAL
                                     environment variable.
     -p <product name or path>     - simple product name like 'sooner', or
                                     a relative/absolute path to a product
      

  4.   

    R找不到应该没编译,昨天我一个同事就遇到了,后来发现是ADT插件中的build tools没有安装