cordova-2.7.0.jar在哪里? [英] Where is cordova-2.7.0.jar?

查看:146
本文介绍了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> < package_name> < 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 project
  • package_name is the package name, e.g. com.YourCompany.YourAppName
  • project_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屋!

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