appium-doctor安装后的问题解决方案

appium-doctor

appium-doctor可以检测Appium整体依赖环境配置情况。

C:\Users\Shuqing>cnpm install appium-doctor -g
  • 在控制台输入命令:appium-doctor 看到如下提示说明整体环境配置成功。
C:\Users\Shuqing>appium-doctor
info AppiumDoctor Appium Doctor v.1.4.3
info AppiumDoctor ### Diagnostic starting ###
info AppiumDoctor  ✔ The Node.js binary was found at: D:\program files\nodejs\node.exe
info AppiumDoctor  ✔ Node version is 6.11.3
info AppiumDoctor  ✔ ANDROID_HOME is set to: E:\Andriod_sdk
info AppiumDoctor  ✔ JAVA_HOME is set to: C:\Program Files\Java\jdk1.8.0_05
info AppiumDoctor  ✔ adb exists at: E:\Andriod_sdk\platform-tools\adb.exe
info AppiumDoctor  ✔ android exists at: E:\Andriod_sdk\tools\android.bat
info AppiumDoctor  ✔ emulator exists at: E:\Andriod_sdk\tools\emulator.exe
info AppiumDoctor  ✔ Bin directory of %JAVA_HOME% is set
info AppiumDoctor ### Diagnostic completed, no fix needed. ###
info AppiumDoctor
info AppiumDoctor Everything looks good, bye!
info AppiumDoctor

如果上面某一项显示为“X”则说明相关环境没有配置好,需要重新安装配置。

以下是成功的展示内容:

info AppiumDoctor Appium Doctor v.1.16.0
info AppiumDoctor ### Diagnostic for necessary dependencies starting ###
info AppiumDoctor  ✔ The Node.js binary was found at: E:\APpium\nodejs\node-v17.6.0-win-x64\node.EXE
info AppiumDoctor  ✔ Node version is 17.6.0
info AppiumDoctor  ✔ ANDROID_HOME is set to: E:\APpium\SDK\android-sdk-windows
info AppiumDoctor  ✔ JAVA_HOME is set to: E:\APpium\jdk
info AppiumDoctor    Checking adb, android, emulator
info AppiumDoctor      'adb' is in E:\APpium\SDK\android-sdk-windows\platform-tools\adb.exe
info AppiumDoctor      'android' is in E:\APpium\SDK\android-sdk-windows\tools\android.bat
info AppiumDoctor      'emulator' is in E:\APpium\SDK\android-sdk-windows\tools\emulator.exe
info AppiumDoctor  ✔ adb, android, emulator exist: E:\APpium\SDK\android-sdk-windows
info AppiumDoctor  ✔ 'bin' subfolder exists under 'E:\APpium\jdk'
info AppiumDoctor ### Diagnostic for necessary dependencies completed, no fix needed. ###
info AppiumDoctor
info AppiumDoctor ### Diagnostic for optional dependencies starting ###
info AppiumDoctor  ✔ opencv4nodejs is installed at: E:\APpium\nodejs\node-v17.6.0-win-x64\node_global. Installed version is: 5.6.0
info AppiumDoctor  ✔ ffmpeg is installed at: E:\APpium\ffmpeg\ffmpeg-4.4-essentials_build\bin\ffmpeg.EXE. ffmpeg version 4.4-essentials_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
info AppiumDoctor  ✔ mjpeg-consumer is installed at: E:\APpium\nodejs\node-v17.6.0-win-x64\node_global. Installed version is: 2.0.0
info AppiumDoctor  ✔ bundletool.jar is installed at: E:\APpium\SDK\android-sdk-windows\bundle-tool\bundletool.jar
info AppiumDoctor  ✔ gst-launch-1.0.exe and gst-inspect-1.0.exe are installed at: E:\APpium\gstre\1.0\mingw_x86_64\bin\gst-launch-1.0.exe and E:\APpium\gstre\1.0\mingw_x86_64\bin\gst-inspect-1.0.exe
info AppiumDoctor ### Diagnostic for optional dependencies completed, no fix possible. ###
info AppiumDoctor
info AppiumDoctor Everything looks good, bye!
info AppiumDoctor

1.opencv4nodejs is no found的解决办法:使用以下命令

npm -g install opencv4nodejs --ignore-scripts

2.ffmpeg is no found的解决办法:

解压问题解决包中的文件【ffmpeg-4.4-essentials_build.zip】
配置你所在的环境变量找到系统换将变量,
选择path,
点击新建,
把文件【ffmpeg-4.4-essentials_build.zip】的路径粘贴进去,就解决了。

3.mjpeg-consumer is no found的解决办法:使用以下命令:

npm i -g mjpeg-consumer

4.bundletool.jar is no count的解决问题办法:

在问题解决包中找到【bundletool-all-1.8.0.jar】,

修改名字为【bundletool.jar】,

然后在SDK中新建一个文件夹目录【bundle-tool】,

把【bundletool-all-1.8.0.jar】放到文件夹目录【bundle-tool】中。

5.gst-launch-1.0.exe and gst-inspect-1.0.exe is no found 问题解决办法:

安装问题解决包中下面的软件:记得选择安装路径
先安装 cmake-3.21.2-windows-x86_64 .msi               									
再安装 gstreamer-1.0-devel-mingw-x86_64-1.18.4.msi   放到一个独立文件夹中,添加环境变量
在安装 gstreamer-1.0-mingw-x86_64-1.18.4.msi              放到一个独立文件加中,添加环境变量

你可能感兴趣的:(adb,appuim)