Hi Palas,
When I start server from Appium GUI tool and run arc , it launches emulator with app.
But when I’m starting appium server from command line by either of below 2 commands
appium or appium & , it is throwing below error message
error: Failed to start an Appium session, err was: Error: Could not find zipalign in tools, platform-tools, or supported build-tools under “/Applications/AndroidStudio.app/sdk”; do you have android SDK or build-tools installed into this location? Supported build tools are: 17.0.0, 18.0.1, 19.0.0, 19.0.1, android-4.2.2, android-4.3, android-4.4
info: Error: Could not find zipalign in tools, platform-tools, or supported build-tools under “/Applications/AndroidStudio.app/sdk”; do you have android SDK or build-tools installed into this location? Supported build tools are: 17.0.0, 18.0.1, 19.0.0, 19.0.1, android-4.2.2, android-4.3, android-4.4
at ADB.checkSdkBinaryPresent (/usr/local/lib/node_modules/appium/lib/devices/android/adb.js:95:10)
at ADB.checkZipAlignPresent (/usr/local/lib/node_modules/appium/lib/devices/android/adb.js:138:8)
at ADB.zipAlignApk (/usr/local/lib/node_modules/appium/lib/devices/android/adb.js:452:8)
at null. (/usr/local/lib/node_modules/appium/lib/devices/android/adb.js:491:10)
at ChildProcess.exithandler (child_process.js:646:7)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Socket. (child_process.js:969:11)
at Socket.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
info: Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Could not find zipalign in tools, platform-tools, or supported build-tools under “/Applications/AndroidStudio.app/sdk”; do you have android SDK or build-tools installed into this location? Supported build tools are: 17.0.0, 18.0.1, 19.0.0, 19.0.1, android-4.2.2, android-4.3, android-4.4)”,“origValue”:“Could not find zipalign in tools, platform-tools, or supported build-tools under “/Applications/AndroidStudio.app/sdk”; do you have android SDK or build-tools installed into this location? Supported build tools are: 17.0.0, 18.0.1, 19.0.0, 19.0.1, android-4.2.2, android-4.3, android-4.4”},“sessionId”:null}
POST /wd/hub/session 500 45666ms - 728b
Note:
I have appium repo cloned locally and I have updated it before trying above steps
Please let me know what am I doing wrong here ?
Q 2. I couldn’t find answer for starting server by “appium” or “appium &” , what’s the difference between these 2 ?
Thanks & Regards,
Vikram