alibaba / macaca

Automation solution for multi-platform. 多端自动化解决方案
https://macacajs.github.io
MIT License
3.17k stars 418 forks source link

macaca coverage -r java出错 #817

Open ghost opened 6 years ago

ghost commented 6 years ago

macaca coverage -r java -f ./coverage.exec -c ./android_app_bootstrap/build/intermediates/classes/debug -s ./android_app_bootstrap/src/main/java --html ./reporter

please confirm java is installed, https://macacajs.github.io/coverage helper.js:34:12 [master] pid:2592 command not found: java

当我运行macaca coverage命令时,报please confirm java is installed, https://macacajs.github.io/coverage ,是说我的java环境变量不对吗,我在命令行窗口直接敲java都可以的,不是我java环境变量的问题。

macaca-bot commented 6 years ago

This is the translated issue:


Macaca coverage -r java error

Macaca coverage -r java -f ./coverage.exec -c ./android_app_bootstrap/build/intermediates/classes/debug -s ./android_app_bootstrap/src/main/java --html ./reporter

please confirm java is installed, https://macacajs.github.io/coverage helper.js:34:12 [master] pid:2592 command not found: java

When I run the macaca coverage command, I declare that it is installed, https://macacajs.github.io/coverage , Is that my java environment variable is wrong, I can directly knock java in the command line window, not my java environment variable problem.

  Macaca-doctor version: 2.0.14

  Node.js checklist:

  Node env: C:\Program Files\nodejs\node.exe   Node version: v8.11.1

  Android checklist:

  JAVA version is 1.8   JAVA_HOME is set to C:\Program Files\Java\jdk1.8.0_151   ANDROID_HOME is set to E:\sdk   Platforms is set to E:\sdk\platforms\android-9   ADB tool is set to E:\sdk\platform-tools\adb.exe   GRADLE_HOME is set to D:\gradle-4.3.1

  Installed driver list:

  Android: 2.0.47