0

我正在尝试从 konyone 工作室构建一个小型 helloworld 表单,同时构建应用程序时出现以下错误:

    compile:
     [echo] Packaging the android Helloworld application
     [exec] Buildfile: C:\workspace\temp\Helloworld\build\luaandroid\dist\Helloworld\build.xml
     [exec]   [taskdef] Could not load definitions from resource anttasks.properties. It could not be found.
     [exec] 
     [exec] -set-mode-check:
     [exec] 
     [exec] -set-debug-files:
     [exec] 
     [exec] -check-env:
     [exec] 
     [exec] BUILD FAILED
     [exec] C:\Android\android-sdk\tools\ant\build.xml:401: Problem: failed to create task or type checkenv
     [exec] Cause: The name is undefined.
     [exec] Action: Check the spelling.
     [exec] Action: Check that any custom tasks/types have been declared.
     [exec] Action: Check that any <presetdef>/<macrodef> declarations have taken place.
     [exec] 
     [exec] 
     [exec] Total time: 2 seconds
[11-10-2013 01:39:42]Ant build error=exec returned: 1
[11-10-2013 01:39:42]Build Generation failed for platform Android.
[11-10-2013 01:39:42]Total time taken: 15390 ms
[11-10-2013 01:39:42]Build Generation has failed for the following platforms:-->Android
[11-10-2013 01:39:42]<-----------Build Generation job is completed--------------->

有人可以告诉我如何摆脱这个问题。有没有人来解决这个问题...??

4

4 回答 4

0
JAVA_HOME  C:\Program Files (x86)\Java\jdk1.6.0_38
ANT_HOME   D:\apache-ant-1.9.3
PATH       D:\sdk\tools;D:\sdk\platform-tools;D:\apache-ant-1.9.3\bin;C:\Program Files (x86)\Java\jdk1.6.0_38\bin;C:\Program Files (x86)\Java\jre6\bin;C:\Kony\ImageMagick;

You need to set a path in your Environment variables,Without these things you can't able to do Build generation.

于 2014-03-31T10:27:52.577 回答
0

您需要在环境变量中提供 ANT_HOME 路径。

使用此链接下载 Apache ant

于 2014-04-01T05:50:45.747 回答
0

去检查windows->preference->然后选择kony studio->check build option

或者按照 kony studio hello world 中的 kony 帮助开始

于 2014-03-17T10:59:34.293 回答
0

这听起来确实像 Ant 问题,而不是 Kony 问题。检查您是否遵循了此处 Kony 文档中的安装/配置说明:http: //developer.kony.com/twiki/pub/Portal/Docs/Kony_Studio_InstallationGuide/Default.htm#Android.htm

于 2014-02-10T05:26:25.113 回答