The error of the building appium-android-bootstrap

35 views
Skip to first unread message

Ha Luong

unread,
Feb 7, 2017, 4:51:34 AM2/7/17
to appium-developers
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

Isaac Murchie

unread,
Feb 7, 2017, 10:42:29 AM2/7/17
to appium-d...@googlegroups.com
It looks like the gulp task does not understand Windows.

Can you try changing `ant` to `ant.bat` here: https://github.com/appium/appium-android-bootstrap/blob/master/gulpfile.js#L8 and rerun?

Isaac

--
You received this message because you are subscribed to the Google Groups "appium-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-developers+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/appium-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/appium-developers/d94bb03e-78b1-463e-9b03-e43a4b904b59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ha Luong

unread,
Feb 7, 2017, 9:06:06 PM2/7/17
to appium-developers
It works, thanks Isaac very much.

Isaac Murchie

unread,
Feb 8, 2017, 8:57:10 AM2/8/17
to appium-d...@googlegroups.com
Excellent!

I do not know your GitHub handle so I couldn't cc you in the PR, but can you try out https://github.com/appium/appium-android-bootstrap/pull/40

Isaac.

--
You received this message because you are subscribed to the Google Groups "appium-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-developers+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/appium-developers.
Reply all
Reply to author
Forward
0 new messages