Mac Android Studio提示adb: command not found
来源:互联网 发布:橱柜设计软件 编辑:程序博客网 时间:2024/05/19 06:14
1、打开Android Studio 启动终端 Terminal;
2、进入当前用户home目录(命令输入 echo $HOME);
3、创建.bash_profile文件(命令输入 touch .bash_profile);
4、打开.bash_profile文件(命令输入 open -e .bash_profile);
5、在打开的.bash_profile文件中编辑如下:
export PATH=${PATH}:你电脑sdk的路径/tools:你电脑sdk的路径platform-tools
编辑完成之后,保存,退出;
6、执行命令 source .bash_profile;
7、再输入,adb version 输出Android Debug Bridge version 1.0.32;
就不会再提示adb: command not found;此时android studio adb 已配置成功;
注意:如果下次仍会出现adb:command not found; 执行2,并查看.bash_profile文件是否存在,如果存在,再执行6;
以下为常用的命令:
adb
的全称为Android Debug Bridge,就是起到调试桥的作用。通过 adb 我们可以在IDE中通过DDMS来调试Android程序,其实也就是debug工具。
下面列出 adb 常用的一些命令:
- 查看adb版本:
adb version
- 查看所有设备:
adb devices
- 安装指定apk:
adb install <file>
- 卸载指定包 :
adb uninstall <package>
- 连接设备 :
adb connect [<host>[:<port>]]
(默认端口号是:5555) - 断开设备:
disconnect [<host>[:<port>]]
- 执行远程的shell:
adb shell
- 执行远程shell命令:
adb shell <command>
- 拷贝文件到设备上:
adb push <local> <remote>
- 从设备中拷贝文件:
adb pull <remote> [<local>]
- 查看设备所有信息:
adb bugreport
(包括 bug 报告) - 最重要的命令:
adb help
查看命令帮助,有了他所有命令都知道了,就是 so important 。
0 0
- Mac Android Studio提示adb: command not found
- Android Studio(for mac) adb 命令command not found
- Mac adb: command not found
- adb command not found mac
- Mac adb command not found
- mac下 adb :command not found问题解决
- mac下载Android源码提示repo: command not found
- android studio mac :-bash: gradlew: command not found
- mac android-studio解决adb命令not found
- android studio for Mac 安装提示 Java not found 解决办法
- command not found: adb
- adb command not found
- adb command not found
- mac 下使用adb命令 报出 command not found
- Mac下command not found:gradle/adb终极解决方案
- 解决Mac上adb: command not found问题
- 解决Mac上adb: command not found问题
- Mac上adb: command not found问题解决办法
- APK保护方法之:代码高级混淆
- 爱 —— 哥林多前书(1 Corinthians)第13章
- OJ-2204
- Java内存模型
- flexWrap
- Mac Android Studio提示adb: command not found
- Java 中 静态方法与非静态方法的区别
- 用一部极客电影让你感受互联网科技的潜力
- 内存的分配方式
- CentOS7下安装GitLab
- MATLAB对于文本文件(txt)数据读取的技巧总结(经典中的经典)
- Windows下编译测试BM3D算法效果
- 将ffmpeg移植到Android
- 水果公司