解决appium-doctor报bundletool.jar cannot be found问题

遇到的报错
1、ANDROID_HOME is NOT set!
2、JAVA_HOME is NOT set!
修改环境变量:open -e .bash_profile
#JAVA_HOME
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
export CLASSPATH=.: J A V A H O M E / l i b / d t . j a r : JAVA_HOME/lib/dt.jar: JAVAHOME/lib/dt.jar:JAVA_HOME/lib/tools.jar
export PATH= J A V A H O M E / b i n : JAVA_HOME/bin: JAVAHOME/bin:PATH

#ANDROID_HOM:
export ANDROID_HOME=/Users/uxin/Library/Android/sdk
export PATH= A N D R O I D H O M E : ANDROID_HOME: ANDROIDHOME:PATH
export PATH=${PATH}:/Users/issuser/Library/Android/sdk/platform-tools:/Users/issuser/Library/Android/sdk/tools
然后更新刚配置的环境变量:source .bash_profile

3、opencv4nodejs cannot be found.
cmake --version 查看cmake是否安装
已安装执行:npm -g install opencv4nodejs 安装opencv4nodejs

4、解决 mjpeg-comsumer cannot be found的问题
安装:npm i -g mjpeg-consumer

5、ffmpeg cannot be found
输入brew install ffmpeg即可解决

6、idb and idb_companion are not installed
命令如下:
brew tap facebook/fb
brew install idb-companion
pip3.6 install fb-idb
说明:执行 pip3.6 install fb-idb可能会报-bash: pip3.6: command not found
解决办法:
配置环境变量
执行 open .bash_profile打开添加
export PYTHON_HOME=/home/dbuser/Python-3.7.3
export PATH= P Y T H O N H O M E / b i n : PYTHON_HOME/bin: PYTHONHOME/bin:PATH

Python-3.7.3这里是自己安装的Python版本哦,要改成自己的,同样

pip3.7这里也是要改成自己的Python版本
后执行使之生效:
source ~/.bash_profile
在执行pip3.7就OK了。
source .bash_profile刷新

7、applesimutils cannot be found
brew tap wix/brew
brew install applesimutils

8、bundletool.jar cannot be found
在https://github.com/google/bundletool/releases 下载bundletool.jar,
改名成这个bundletool
在android sdk目录下,创建bundle-tool目录,把jar包放入,
在终端切换到当前目录下
并执行chmod +x bundletool.jar命令给jar包加权限
修改环境变量,path后追加,:$ANDROID_HOME/bundle-tool/,

source .bash_profile刷新

你可能感兴趣的:(解决appium-doctor报bundletool.jar cannot be found问题)