开发Android的环境要重新在Mac上搭建,结果在配置环境变量时找不到.bash_profile文件,下面是搜索出来的资料步骤:
1. 启动终端Terminal
2. 进入当前用户的home目录
输入cd ~
3. 创建.bash_profile
输入touch .bash_profile
4. 编辑.bash_profile文件
输入open -e .bash_profile
因为是为了搭建Android开发环境,输入Android SDK下的tools目录:类似这种export PATH=${PATH}:/Users/lichangjie/Library/Android/sdk/platform-tools:/Users/lichangjie/Library/Android/sdk/tools
5. 保存文件,关闭.bash_profile
6. 更新刚配置的环境变量
输入source .bash_profile
7. 验证配置是否成功
adb shell
8.如果是需要添加很多命令到PATH下时,需要用“:”(英文的冒号)隔开即可,因为android和adb这些命令是在不同的文件夹中的,这样才能两者兼得.
相关推荐
android adb 命令介绍Android adb命令Android adb命令Android adb命令Android adb命令Android adb命令Android adb命令
android adb 配置文件 ubuntu环境android adb 配置文件 ubuntu环境android adb 配置文件 ubuntu环境android adb 配置文件 ubuntu环境android adb 配置文件 ubuntu环境android adb 配置文件 ubuntu环境android adb ...
本文档用于Android开发人员和测试人员熟悉android平台下的adb的各种操作,将工作中常用的adb命令进行了一一举例,提高工作效率。
android adb shell 命令大全 1. 显示系统中全部Android平台: android list targets 2. 显示系统中全部AVD(模拟器): android list avd 3. 创建AVD(模拟器): android create avd --name 名称 --...
Android adb命令工具,借助adb工具,我们可以管理设备或手机模拟器的状态。还可以进行很多手机操作,如安装软件、卸载软件、系统升级、运行shell命令等等。adb就是连接Android手机与PC端的桥梁,可以让用户在电脑上...
Android ADB命令的使用教程,简单明快
android ADB命令的使用,比较具体
adb命令执行工具Android 方便的android代码中执行adb命令的工具
很方便的android代码中执行adb命令的工具
adb for debugging windows android
Android adb 进程端口处理命令
android adb命令使用方法介绍,有需要的朋友可以下来看看。
android adb shell 命令
adb 介绍与环境配置 adb 基础命令 adb 备份与恢复命令 adb 重定向端口命令 adb 无线连接与文件同步
这个命令是查看当前连接的设备, 连接到计算机的android设备或者模拟器将会列出显示 2. 安装软件 adb install <apk文件路径> 这个命令将指定的apk文件安装到设备上+ a& w/ K7 l7 g& W# h& P 3. 卸载软件 adb...
adb常用命令adb shell常用命令.docx.zip
使用mac对adb环境进行配置,获取对应android手机的一些配置信息
android手机系统adb常用的命令
Android中的adb命令详解,Android中的adb命令详解
覆盖很全的ADB命令,可供android开发和测试人员下载