error: Failed to start an Appium session, err was: Error: zipAlignApk failed. Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c ""F:\Program Files (x86)\Android\android-sdk\build-tools\24.0.0\zipalign.exe" -f 4 E:\Test\Android\paralleltest\apps\com.ehang.player-Signed.apk C:\Users\Ehang\AppData\Local\Temp\117122-21588-1t694q3\appium.tmp"
W/zip (30836): copy of 'res/drawable/icon_video_help.png' failed
info: [debug] Error: zipAlignApk failed. Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c ""F:\Program Files (x86)\Android\android-sdk\build-tools\24.0.0\zipalign.exe" -f 4 E:\Test\Android\paralleltest\apps\com.ehang.player-Signed.apk C:\Users\Ehang\AppData\Local\Temp\117122-21588-1t694q3\appium.tmp"
W/zip (30836): copy of 'res/drawable/icon_video_help.png' failed

at F:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:468:19
at ChildProcess.exithandler (child_process.js:758:5)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1016:16)
at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: zipAlignApk failed. Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c \"\"F:\Program Files (x86)\Android\android-sdk\build-tools\24.0.0\zipalign.exe\" -f 4 E:\Test\Android\paralleltest\apps\com.ehang.player-Signed.apk C:\Users\Ehang\AppData\Local\Temp\117122-21588-1t694q3\appium.tmp\"\nW/zip (30836): copy of 'res/drawable/icon_video_help.png' failed\r\n)","origValue":"zipAlignApk failed. Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c \"\"F:\Program Files (x86)\Android\android-sdk\build-tools\24.0.0\zipalign.exe\" -f 4 E:\Test\Android\paralleltest\apps\com.ehang.player-Signed.apk C:\Users\Ehang\AppData\Local\Temp\117122-21588-1t694q3\appium.tmp\"\nW/zip (30836): copy of 'res/drawable/icon_video_help.png' failed\r\n"},"sessionId":null}
info: <-- POST /wd/hub/session 500 10663.250 ms - 896

日志显示执行 zipalign.exe 命令失败,是不是有可能由于多机并行运行同时执行该命令导致这个错误出现?各位有没有在并行运行时遇到这个坑,求解决👍


↙↙↙阅读原文可查看相关链接,并与作者交流