Appium Appium+TestNg 在多台手机上初始化执行 zipalign.exe 时失败

Heyyu · 2017年02月22日 · 最后由 空空 回复于 2017年05月18日 · 1976 次阅读

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 命令失败,是不是有可能由于多机并行运行同时执行该命令导致这个错误出现?各位有没有在并行运行时遇到这个坑,求解决👍

共收到 2 条回复 时间 点赞

我也遇到这种问题

我也是,并发测试不稳定。。。。你解决了吗

Heyyu 关闭了讨论 05月18日 16:53
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册