Mac下adb环境配置

来源:互联网 发布:湖南农大网络教学平台 编辑:程序博客网 时间:2024/05/22 06:41
1.启动Mac自带的终端Terminal。
  进入当前用户的home目录。
2.在命令行输入echo $HOME
3. 创建.bash_profile文件。
   命令行输入touch .bash_profile
4,打开.bash_profile文件。
  命令行输入open -e .bash_profile 此命令行输入完毕后,会自动弹出 .bash_profile 文件的编辑窗口
5.在.bash_profile文件中输入 export PATH=/Users/您的用户名/文件路径/platform-tools/:$PATH;如我的为:export PATH=${PATH}:/Users/shibo/Library/Android/sdk/platform-tools/:

6.在命令行中输入source .bash_profile

7.adb shell 

查看内存使用的方法:

1 ps

2 dumpsys meminfo com.example.shibo.mylistview



0 0
原创粉丝点击