I have the same issue and do have the path set, so that
android
launches the SDK managment tool from the directory called out in the error. However, still get this message:
[ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: Cannot run program "android" (in directory "/home/dbarry/rosAndroid/android_core/android_acm_serial"): java.io.IOException: error=2, No such file or directory
14:10:07.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:69)
14:10:07.224 [ERROR] [org.gradle.BuildExceptionReporter] ... 1 more
14:10:07.224 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
In fact, even copying the executable file Android into the directory does not help much-- still get an error at the same spot:
* What went wrong:
Execution failed for task ':android_acm_serial:updateProject'.
A problem occurred starting command 'android'.
but with a different debug:
[org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build.
14:16:45.529 [DEBUG] [org.gradle.launcher.daemon.server.exec.ReturnResult] Daemon is dispatching the build result: DaemonCommandResult[type=CommandFailure, value=org.gradle.launcher.exec.ReportedException: org.gradle.api.internal.LocationAwareException: Execution failed for task ':android_acm_serial:updateProject'.]
14:16:45.737 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] input forwarder stop requested
14:16:45.739 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] Dispatching close input message: CloseI