我是使用 PhoneGap 的新手,我正在尝试设置示例应用程序,我使用的是 PhoneGap 版本 2.9.0 和 apache-ant-1.9.1。
我已经配置了 apache ant,安装了 WebWorks SDK 并设置了 project.properties 文件。
错误似乎是它在临时文件夹中找不到“CordovaExample”文件,我检查了该文件夹,其中包含以下文件:“CordovaExample.jdp”、“CordovaExample.jdw”和“CordovaExample.rapc” (除其他外)。我是否缺少一些配置,以便它应该搜索这 3 个文件之一,而不仅仅是“CordovaExample”?
运行“ant blackberry build”命令时,错误如下所示:
jamest@JT1 /c/Development/FirstApp
$ ant blackberry build
Buildfile: c:\Development\FirstApp\build.xml
blackberry:
build:
generate-cod-name:
[echo] Generated name: CordovaExample.cod
clean:
[delete] Deleting directory c:\Development\FirstApp\build
package-app:
[mkdir] Created dir: c:\Development\FirstApp\build\widget
[copy] Copying 22 files to c:\Development\FirstApp\build\widget
[zip] Building zip: c:\Development\FirstApp\build\CordovaExample.zip
build:
[exec] [INFO] Parsing command line options
[exec] [INFO] Parsing bbwp.properties
[exec] [INFO] Validating application archive
[exec] [INFO] Parsing config.xml
[exec] [INFO] Populating application source
[exec] [INFO] Compiling BlackBerry WebWorks application
[exec] I/O Error: C:\Users\jamest\AppData\Local\Temp\widgetGen.584154969137
3014448670.tmp\CordovaExample (The system cannot find the file specified)
[exec] [ERROR] RAPC exception occurred
BUILD SUCCESSFUL
Total time: 8 seconds
我在网上搜索过,但找不到任何类似的问题,所以非常感谢任何帮助。
谢谢