1

我曾尝试使用此链接,但无法构建科尔多瓦 jar 文件,

当我运行 android update project -p 时。-t android-19 在我的框架目录中我得到输出:

E:\eclipse\cordova-android-master\framework>android update project -p . -t android-15
Updated project.properties
Updated local.properties
build.xml: Found version-tag: custom. File will not be updated.
Updated file E:\eclipse\cordova-android-master\framework\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.

然后在我在框架目录中运行命令 ant jar 的步骤中,我得到输出:

[checkenv] Installed at D:\Program Files (x86)\sdk

-setup:
     [echo] Project Name: Cordova
  [gettype] Project Type: Android Library

-build-setup:
[getbuildtools] Using latest Build Tools: 17.0.0
     [echo] Resolving Build Target for Cordova...
[gettarget] Project Target:   Android 4.4
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: D:\Android\PhoneGap\cordova-3.2.0-src\cordova-3.2.0\cordova-android\cordova-android\framework\bin\dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for Cordova...
[dependency] Library dependencies:
[dependency] No Libraries
     [echo] ----------
     [echo] Building Libraries with '${build.target}'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [aapt] invalid resource directory name: D:\Android\PhoneGap\cordova-3.2.0-src\cordova-3.2.0\cordova-android\cordova-android\framework\bin\res/crunch

BUILD FAILED
D:\Program Files (x86)\sdk\tools\ant\build.xml:650: The following error occurred while executing this line:
D:\Program Files (x86)\sdk\tools\ant\build.xml:691: null returned: 1

Total time: 2 seconds

请帮我

4

3 回答 3

0

您可以尝试从以下链接下载http://www.java2s.com/Code/Jar/c/cordova.htm

于 2013-11-27T12:25:00.977 回答
0

转到 E:\eclipse\cordova-android-master\framework> 打开build.xml文件,更改version-tag: customversion-tag: 1 保存文件。

并运行命令

android update project -p . -t android-15

然后运行

ant clean

蚂蚁跑

于 2014-03-18T14:12:34.993 回答
0

科尔多瓦下载和档案

(1) http://phonegap.com/install/

(2) http://cordova.apache.org/#download

于 2013-11-27T12:11:18.120 回答