[ https://issues.apache.org/jira/browse/CB-7299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve resolved CB-7299. ------------------------------- Resolution: Fixed Fixed in 3.6.0-dev > Hard to diagnose message when ANDROID_HOME env variable missing > --------------------------------------------------------------- > > Key: CB-7299 > URL: https://issues.apache.org/jira/browse/CB-7299 > Project: Apache Cordova > Issue Type: Bug > Components: Android, CLI > Reporter: Andrey Kurdyumov > > When ANDROID_HOME env variable not set then then following output is produced: > {noformat} > Running command: C:\<projectdir>\platforms\android\cordova\run.bat > Unable to locate tools.jar. Expected to find it in C:\Program > Files\Java\jre8\lib\tools.jar > Buildfile: C:\<projectdir>\platforms\android\build.xml > BUILD FAILED > C:\<projectdir>\platforms\android\build.xml:90: Cannot find > C:\Users\<user>\AppData\Local\Android\android-sdk\ > tools\ant\build.xml imported from C:\<projectdir>\platforms\android\build.xml > Total time: 2 seconds > C:\<projectdir>\platforms\android\cordova\node_modules\q\q.js:126 > throw e; > ^ > Error code 1 for command: cmd with args: > /s,/c,ant,debug,-f,C:\<projectdir>\platforms\android\build.xml,-Dou > t.dir=ant-build,-Dgen.absolute.dir=ant-gen > Error: C:\<projectdir>\platforms\android\cordova\run.bat: Command failed with > exit code 8 > at ChildProcess.whenDone > (C:\Users\<user>\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordov > a\superspawn.js:135:23) > at ChildProcess.emit (events.js:98:17) > at maybeClose (child_process.js:756:16) > at Process.ChildProcess._handle.onexit (child_process.js:823:5) > {noformat} > Expected to be more user friendly error message: > {noformat} > Error: ANDROID_HOME variable should set before running `cordova run android` > {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)