在Phonegap上构建发布时出错

时间:2014-07-16 21:58:03

标签: android cordova ant

我正在尝试使用

为Android平台构建Phonegap / Cordova
ant release

但是我收到以下错误

Buildfile: /Users/delgiudices/Dev/phonegap/wein2/platforms/android/build.xml
  [taskdef] Could not load definitions from resource anttasks.properties. It could not be found.
  [taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.

-set-mode-check:

-set-release-mode:

BUILD FAILED
/Users/delgiudices/Downloads/android-sdk-macosx/tools/ant/build.xml:1113: Problem: failed to create task or type xpath
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

为什么会发生这种情况?

1 个答案:

答案 0 :(得分:0)

确保你的local.properties中有这一行,这是我的错误

sdk.dir=/Path/To/android-sdk/