在konyone工作室的hello world app中构建错误

时间:2013-11-10 07:01:35

标签: android ant adt kony

我正在尝试从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 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

去查看windows-&gt; preference-&gt;然后选择kony studio-&gt; check build option

或者跟随kony工作室的kony帮助 hello world getting start

答案 2 :(得分: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;

您需要在环境变量中设置路径,如果没有这些内容,您就无法进行构建生成。

答案 3 :(得分:0)

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

use this link download Apache ant