Dear all,
I meet the following error when building appium-android-bootstrap as follow:
D:\work\appium\appium-master\node_modules\appium-android-bootstrap>gulp ant-build
Using gulpfile D:\work\appium\appium-master\node_modules\appium-android-bootstrap\gulpfile.js
Starting 'ant-clean'...
'ant-clean' errored after 15 ms
Error: Command 'ant' not found. Is it installed?
at ChildProcess.<anonymous> (../../lib/teen_process.js:36:14)
at emitOne (events.js:96:13)
at ChildProcess.emit (events.js:188:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:213:12)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
I run appium-doctor and the dev environment is ok.
d:\work\appium\appium-master>appium-doctor --dev
info AppiumDoctor Appium Doctor v.1.4.1
info AppiumDoctor ### Diagnostic starting ###
info AppiumDoctor ✔ The Node.js binary was found at: C:\Program Files\nodejs\node.exe
info AppiumDoctor ✔ Node version is 6.9.5
info AppiumDoctor ✔ ANDROID_HOME is set to: C:\Users\haluong\AppData\Local\Android\sdk
info AppiumDoctor ✔ JAVA_HOME is set to: C:\Program Files (x86)\Java\jdk1.8.0_111
info AppiumDoctor ✔ adb exists at: C:\Users\haluong\AppData\Local\Android\sdk\platform-tools\adb.exe
info AppiumDoctor ✔ android exists at: C:\Users\haluong\AppData\Local\Android\sdk\tools\android.bat
info AppiumDoctor ✔ emulator exists at: C:\Users\haluong\AppData\Local\Android\sdk\tools\emulator.exe
info AppiumDoctor ✔ Bin directory of %JAVA_HOME% is set
info AppiumDoctor ✔ mvn.bat was found at D:\soft\apache-maven-3.3.9\bin\mvn.bat
info AppiumDoctor ✔ ant.bat was found at D:\soft\apache-ant-1.10.0\bin\ant.bat
info AppiumDoctor ✔ adb.exe was found at C:\Users\haluong\AppData\Local\Android\sdk\platform-tools\adb.exe
info AppiumDoctor ✔ android-16 was found at: C:\Users\haluong\AppData\Local\Android\sdk\platforms\android-16
info AppiumDoctor ✔ android-19 was found at: C:\Users\haluong\AppData\Local\Android\sdk\platforms\android-19
info AppiumDoctor ### Diagnostic completed, no fix needed. ###
info AppiumDoctor
info AppiumDoctor Everything looks good, bye!
info AppiumDoctor
Could you please help me?
Thanks,
Ha