我在android上使用Ubuntu PC開發了自動化工具(Appium)。我已經編寫了測試用例,並在eclipse中使用TestNG運行。每當我運行測試用例時,我得到了錯誤ie如何使用Ubuntu在appium中修復問題
Failed to start an Appium session, err was: Error: zipAlignApk failed. Error: Command failed: /bin/sh: 1: -f: not found
info: Error: zipAlignApk failed. Error: Command failed: /bin/sh: 1: -f: not found
at /usr/lib/node_modules/appium/lib/devices/android/adb.js:461:19
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
我也將建立到的zipalign並使用此命令 zipalign -f -v 4 "/home/android/Desktop/app.apk" "/home/android/Desktop/app1.apk"
請建議我如何解決這個問題