Skip to content

Commit

Permalink
fix: Android环境配置不生效的字符串匹配问题
Browse files Browse the repository at this point in the history
  • Loading branch information
DC-ing committed Nov 27, 2018
1 parent 69dfc92 commit 9a1d66d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/dc/utils/AndroidAdb.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public void startADB() {
logger.catching(e);
}
String[] lines = output.split("\n");
if (lines[0].contains("internal or external command")) {
//仅在macOS、Linux中生效,Windows系统无法确定是否生效
if (lines[0].contains("command not found")) {
logger.error("请在系统设置 ANDROID_HOME 环境变量");
}
}
Expand Down

0 comments on commit 9a1d66d

Please sign in to comment.