【问题标题】:Ant build error = exec-shell returned:1Ant 构建错误 = exec-shell 返回:1
【发布时间】:2016-08-14 11:38:36
【问题描述】:

我正在 Kony Studio 中做一个演示项目。在运行 Android 应用程序时,我总是收到 Ant build error

请检查错误日志,

-post-package:
[exec-shell] 
[exec-shell] /Users/mac/Library/Android/sdk/tools/ant/build.xml:1037: The following error occurred while executing this line:-do-debug:
[exec-shell] 
[exec-shell]  [zipalign] Running zip align on final apk...
[exec-shell] /Users/mac/Library/Android/sdk/tools/ant/build.xml:1039: The following error occurred while executing this line:
[exec-shell] /Users/mac/Library/Android/sdk/tools/ant/build.xml:336: Execute failed: java.io.IOException: Cannot run program "/Users/maca/Library/Android/sdk/tools/zipalign" (in directory "/Users/mac/KonySampleApps/temp/DisplayText/build/luaandroid/dist/DisplayText"): error=13, Permission denied
[exec-shell]    at java.lang.ProcessBuilder.processException(ProcessBuilder.java:478)

日志说文件存在权限问题,但我给了读/写权限,即使没有运气,我正在使用MacBookPro。帮助我摆脱这个问题。提前致谢。

this 帖子得到解决方案

【问题讨论】:

    标签: android temenos-quantum


    【解决方案1】:

    检查/Users/maca/Library/Android/sdk/tools/zipalign 是否存在并且是可执行的。 Google 经常移动 zipalign(以及其他工具)。

    如果缺少从/Users/maca/Library/Android/sdk/build-tools/…/Users/maca/Library/Android/sdk/tools 的副本(最新)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-01
      • 2015-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多