如何构建和运行使用Eclipse的科尔多瓦项目和Android上运行项目 [英] How to Build and run the cordova project with eclipse and run project for android

查看:116
本文介绍了如何构建和运行使用Eclipse的科尔多瓦项目和Android上运行项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了科尔多瓦CLI项目,但我不知道我需要改变,以及如何与Eclipse为每个平台运行科尔多瓦Android项目。感谢您的帮助。

I have created the project with cordova CLI but i do not know where i need to change and how to run the cordova android project with eclipse for each platform. Thanks for helping

推荐答案

在运行科尔多瓦项目里面的Andr​​oid项目,你应该知道这些事情。
 如果你正在在科尔多瓦项目的任何变化那么首先你需要prepare的coodova。使用commond 科尔多瓦prepare

Before run the android project inside your Cordova Project you should know these things. If you are making any changes in the Cordova Project then first you need to prepare the coodova. use the commond cordova prepare

然后,在你的 config.xml中(Android版)国产自动变更为您添加或您所做的任何更改。不要让你的Andr​​oid项目,该项目是存在于您的科尔多瓦项目中的任何变化。你只能让你的科尔多瓦项目的 WWW 文件夹内的变化。而之后更改您需要每次科尔多瓦prepare。

Then it made changed in your config.xml (for android) automatic as you added or any changes you made. Do not make any change in your android project which are exist inside your Cordova project. You can only make change inside the www folder of your Cordova project. And after made changed you need to make cordova prepare every time.

在prepare科尔多瓦,你可以运行在设备或模拟器的Andr​​oid项目。为此,请确保已经取得的Andr​​oid SDK的路径平台工具工具在您的环境系统。如果不配置此路径,并在系统环境中添加这两个新的路径。
现在运行在设备上使用命令科尔多瓦运行的Andr​​oid 的Andr​​oid项目和仿真器使用运行此命令科尔多瓦模拟机器人

After prepare the cordova you can run the android project on device or emulator. For this you make sure you have made the path of android sdk for platforms-tools and tools in your environment system. If you not configure this path and add this two path in system environment . Now run the android project on device use command cordova run android and run on emulator use this command cordova emulate android.

如果想在Eclipse中运行,那么你应该导入在Eclipse工作区的这个Android项目。但是,如果你做再次在科尔多瓦项目更改然后需要删除并重新导入Android项目这个开关发生得内特每次通过CLI.I运行希望你得到所有的东西。

And if want to run on eclipse then you should import this android project of your workspace in eclipse. But if you again made changes in your cordova project then need to delete and again import the android project this switching happened every time so netter to run through CLI.I hope you got all things

这篇关于如何构建和运行使用Eclipse的科尔多瓦项目和Android上运行项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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