不可用科尔多瓦蚂蚁罐 [英] Cordova ant jar not available

查看:105
本文介绍了不可用科尔多瓦蚂蚁罐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

科尔多瓦3.3.0新鲜和PATH安装固定的可见性,工具等。

Cordova 3.3.0 installed from fresh and PATH fixed with visibility to tools etc.

建立一个新的裸应用 加入Android平台

Build a new bare application Add android platform

现在它开始出差错 -

now it starts to go awry -

以下说明导入到Android开发工具(Eclipse中)我得到两个项目创建 的HelloWorld和HelloWorld的-CordovaLib

Following instructions to import to Android Development Tools ( Eclipse ) I get TWO projects created HelloWorld and HelloWorld-CordovaLib

的HelloWorld存在错误,因为它无法看到/不具有的cordova.jar文件(假设这从过去的经验)

HelloWorld has errors as it can't see/does not have the the cordova.jar file ( assuming this from past experience )

的HelloWorld-CordovaLibs是HelloWorld项目丢失了所有的源科尔多瓦什么

HelloWorld-CordovaLibs is whats missing from the HelloWorld project all the source to Cordova

假设我需要的jar文件我挖过来,并尝试从我的项目的机器人部分

Assuming that I need the jar file I dig around and try running ant jar from within the android part of my project

运行ant JAR失败 -

Running ant jar fails -

目标罐子在做这个项目不存在的HelloWorld

Target "jar" does no exist in the project "HelloWorld"

这是一只蚂蚁的错误,告诉我​​它不知道如何建立目标罐子。

which is an ant error telling me it doesn't know how to build target jar.

看的build.xml在Android目录中证实了这一点 - 对罐子无节 有点在网上和Ap​​ache科尔多瓦Git仓库更多的挖掘,似乎亲密,我应该有内部的目录框架,并定义了jar目标的另一个build.xml文件。

look at build.xml in the android directory confirms this - no section on "jar" A bit more digging on the net and the Apache Cordova git repository seems to intimate that I should have another file build.xml inside a directory 'framework' with the jar target defined.

AHHHHH - 无框架目录下的任何地方

Ahhhhh - no framework directory anywhere.

任何人都可以在哪里工作,所有这一切去错之前,我撕更多头发了?

Can anyone work out where this is all going wrong before I tear any more hair out?

推荐答案

我遵循这个指南创建科尔多瓦3.3.0项目,将其导入到Eclipse中,并成功地从Eclispe的设备上运行它:<一href="http://cordova.apache.org/docs/en/3.3.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide">http://cordova.apache.org/docs/en/3.3.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide

I followed this guide to create a Cordova 3.3.0 project, import it into Eclipse, and successfully run it on a device from Eclispe: http://cordova.apache.org/docs/en/3.3.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide

您说的没错,它进口的HelloWorld和的HelloWorld-CordovaLibs。这是因为<一href="https://issues.apache.org/jira/browse/CB-5232">https://issues.apache.org/jira/browse/CB-5232,这使得安卓现在使用的.jar的CordovaLib而不是对各种原因(见bug报告。)您应导入这两个项目到Eclipse(我会改变这个文档中)。

You are right that it imports "HelloWorld" and "HelloWorld-CordovaLibs". This is because of https://issues.apache.org/jira/browse/CB-5232, which makes Android now use the CordovaLib instead of the .jar for a variety of reasons (see the bug report.) You should import both projects into Eclipse (I'll change this in the documentation).

如果您按照指南,你应该罚款。你不必建立一个的.jar了。

If you follow that guide you should be fine. You don't have to build a .jar anymore.

这篇关于不可用科尔多瓦蚂蚁罐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆