cordova-2.7.0.jar在哪里? [英] Where is cordova-2.7.0.jar?
问题描述
我很难从HTML5构建第一个Android应用程序。
所以,我按照
首先,您需要 commons-codec-1.7.jar
文件。它被下载到cordova-android使用创建
:
检查 http://cordova.apache.org/docs/en/2.7.0/guide_getting-started_android_index.md.html
create< project_folder_path> <程序包> < project_name>
-
project_folder_path
是您的新Cordova Android项目的路径
-
package_name
是包名称,例如com.YourCompany.YourAppName -
project_name
是项目名称,例如YourApp(不得包含
空格)
此过程应下载 commons-codec-1.7.jar
。
然后,入门指南中没有解释以下步骤: cordova-2.7.0.jar
必须使用ant命令行生成,之后将 commons-codec-1.7.jar
复制到framework / lib目录。
android update project -p。-t android-17
ant jar
我们去吧!
I struggle to build a first Android app from HTML5.
So, I follow this detailed tutorial...
It seems that I should add a .jar of Cordova to the project's libs folder, in order to be able to call Cordova's functionnalities in my app.java file. However, I can't find this cordova-2.7.0.jar file anywhere.
Maybe shall I generate it? Therefore I tried an other option, by creating the project from the command line tool following the official getting started guide, but there's no cordova.jar either in the generated project files.
I feel Cordova is not so easy to handle at first...
(By the way, I'm also looking for a Cordova JS file...)
EDIT: To answer to poiuytrez, here is my cordova package, downloaded from http://cordova.apache.org/
I finally found a solution following the github doc https://github.com/apache/cordova-android#building
First, you need the commons-codec-1.7.jar
file. It's downloaded to cordova-android using create
:
Check http://cordova.apache.org/docs/en/2.7.0/guide_getting-started_android_index.md.html
create <project_folder_path> <package_name> <project_name>"
project_folder_path
is the path to your new Cordova Android projectpackage_name
is the package name, e.g. com.YourCompany.YourAppNameproject_name
is the project name, e.g. YourApp (Must not contain spaces)
This process should download commons-codec-1.7.jar
.
Then, the following step is not explained in the getting started guide: cordova-2.7.0.jar
has to be generated with an ant command line, after having copied the commons-codec-1.7.jar
to the framework/lib directory.
android update project -p . -t android-17
ant jar
And here we go!
这篇关于cordova-2.7.0.jar在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!