2014-02-28 34 views
0

我已經通過下面的步驟走了PhoneGap的安裝Android手機峽安裝查詢

我提取的PhoneGap和D:\phonegap-2.9.1文件夾

然後我在D:\username-Software\Android\eclipse

我提取Apache的螞蟻保存ADT救了它並保存在

C:\Program Files\apache-ant-1.9.3 

了java的
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; 

下面看到我缺少的東西???

我已經通過

http://iphonedevlog.wordpress.com/2012/11/20/building-a-phonegap-android-app-on-windows-cordova-2-2-0-with-eclipse/

了,因爲當我運行螞蟻提示錯誤

Buildfile: build.xml does not exist! 
Build failed 

我收到錯誤創建Android項目

繼後是錯誤,因爲在看到圖片

Errors in Android Project

我得到它的權利,直到第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文件夾中如何修復它?

+0

,你同時添加項目,另一個與它的名字-cordovalib? – QuickFix

+0

爲什麼和你在哪裏運行'ant'?是否有任何理由不能使用cordova/phonegap的3.x版本? – MBillau

+0

您可以根據本博客中的說明嘗試一下嗎?http://csharpwavenet.blogspot.sg/2014/04/creating-phonegap-project-with-android.html讓我知道如果這不解決不適合您的幫助那裏。 – Desmond

回答

0

我已經包括科爾多瓦庫 已經解決了它,它總是去失蹤,同時具有作爲第一個建立在Eclipse