我的系统是在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',然后双击这个文件,也能正常打开啊求救,问题出在哪了呢?
解决方案 »
- 如何清空android ListView控件的内容
- android 如何从 3.55mm耳机接口 读取数据,功能 有些类似于Square
- openOrCreateDatabase的问题
- 关于监测数据库SQLite的变化
- 自己编写的GPS定位程序能够在手机上使用吗?比如中兴V880
- 如果在listview里点击该行的按钮,从而获取该行的内容
- 请问如何实现一个用触屏在屏幕上画矩形的android程序?
- 当某个activity在5s之内用户没有操作,自动隐藏怎么实现?
- android手机与电脑通过socket通信
- C#FromBase64String 等语句 转换为JAVA怎么写
- android URL中包含中文下载时出现问题
- 文件搜索功能
看看这个可能就是mac64位的原因,我这里mac上跑起来了
根据你的提示在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