我正在Kony Studio中做一個演示項目。在運行Android應用程序時,我總是得到Ant build error
。Ant build error = exec-shell returned:1
請檢查錯誤日誌,
-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後
請編輯你的答案,所以它是明確的,而不是提供一些參考。 – Farside