轉載自https://blog.csdn.net/wangzhitou/article/details/104551227/
遇到的報錯
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=.:JAVAHOME/lib/dt.jar: JAVA_HOME/lib/dt.jar:JAVA
H
OME/lib/dt.jar:JAVA_HOME/lib/tools.jar
export PATH=JAVAHOME/bin: JAVA_HOME/bin:JAVA
H
OME/bin:PATH
#ANDROID_HOM:
export ANDROID_HOME=/Users/uxin/Library/Android/sdk
export PATH=ANDROIDHOME: ANDROID_HOME:ANDROID
H
OME: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=PYTHONHOME/bin: PYTHON_HOME/bin:PYTHON
H
OME/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包加權限,
windows就找安裝包-屬性-安全-去加讀寫改權限
修改環境變量,path后追加,:$ANDROID_HOME/bundle-tools/,
####git 方法
Thank you very much . I've solved this after i update appium-doctor to 1.10.0
We have to add system environment variables manually.
Then you'll find bundletool. jar
source .bash_profile刷新
————————————————
版權聲明:本文為CSDN博主「wangzhitou」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/wangzhitou/article/details/104551227/