2

我正在用 ant 在 OSX 10.7 上构建。我已经检查过我有良好的 JAVA (1.6.0) 版本等。我似乎无法运行 PhoneGap 1.8 或 1.7 的示例。这是我输入ant blackberry build后终端的输出:

Buildfile: /Users/me/blackberry 1.8/sample/build.xml

blackberry:
build:
generate-cod-name:
     [echo] Generated name: CordovaSample.cod
clean:
   [delete] Deleting directory /Users/me/blackberry 1.8/sample/build
package-app:
    [mkdir] Created dir: /Users/me/blackberry 1.8/sample/build/widget
     [copy] Copying 8 files to /Users/me/blackberry 1.8/sample/build/widget
      [zip] Building zip: /Users/me/blackberry 1.8/sample/build/CordovaSample.zip
build:
     [exec] [INFO]    Populating application source
     [exec] [INFO]    Parsing config.xml
     [exec] [WARN]    Build ID set in config.xml [version], but signing key file was not found: author.p12
     [exec] [WARN]    Build ID set in config.xml [version], but no signing password was provided [-g]. Bar will be unsigned
     [exec] [INFO]    Generating output files
     [exec] [ERROR]   Failed to find feature with id: org.apache.cordova

我已经在我下载并安装的 BlackBerry webworks SDK (10) 中放置了 bbwp 文件的正确链接。我把它放在project.properties中。

blackberry.bbwp.dir=/rim

我仍然收到错误:无法找到具有 id: org.apache.cordova 的功能

回答:我找到了解决方案。我安装了旧版本的 BlackBerry webworks (2.3)。您可以在此处找到旧版本:旧 webworks 版本

4

0 回答 0