【发布时间】:2014-04-01 09:00:34
【问题描述】:
phonegap的安装我已经完成了以下步骤
我提取了phonegap并保存在D:\phonegap-2.9.1文件夹中
然后我将 ADT 保存在 D:\username-Software\Android\eclipse
我提取了apache-ant并保存在
C:\Program Files\apache-ant-1.9.3
我在
C:\Program Files\Java
我的环境变量路径是 如下所示在系统变量下
JAVA_HOME
C:\Program Files\Java\jdk1.6.0_41;
Path
C:\Program Files\Java\jdk1.6.0_41\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;"C:\Program Files\Common Files\EMC";D:\username-Software\Android\sdk\platforms;D:\username-Software\Android\sdk\platform-tools;C:\Program Files\apache-ant-1.9.3\bin;D:\username-Software\Android\sdk\tools;
我错过了什么吗???
我经历过
因为当我运行 ant 时会报错
Buildfile: build.xml does not exist!
Build failed
创建android项目后出现错误
以下是图片中看到的错误
如链接中所示,直到第 6 步为止我都正确完成了
6. I got the following readout from Command Prompt:
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
Creating new android project…
Copying template files…
Copying js, jar & config.xml files…
Copying cordova command tools…
Updating AndroidManifest.xml and Main Activity…
D:\PhoneGap\phonegap-phonegap-2.2.0-0-g8a3aa47\phonegap-phonegap-8a3aa47\lib\and
roid\bin>
7. I found all the files set in the location I indicated.
但是当我看到这个项目时它有错误!!!
我错过了什么吗???
我似乎没有找到 cordova.jar 库...它甚至不在 phonegap-2.9.1 文件夹中我该如何修复它??
【问题讨论】:
-
在 Eclipse 中,您是否添加了您的项目和另一个名称中带有 -cordovalib 的项目?
-
您为什么以及在哪里尝试运行
ant?你有什么理由不能使用 3.x 版本的 cordova/phonegap? -
您能否根据此博客上的说明进行尝试。csharpwavenet.blogspot.sg/2014/04/… 如果这不能解决问题,请告诉我。
标签: java android eclipse cordova ant