使用 eclipse 设置 Phonegap

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15136261/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:05:28  来源:igfitidea点击:

Set up Phonegap with eclipse

androidhtmleclipsecordovaphonegap-build

提问by progdoc

I went through some documentation regarding Phonegap. Coming from an Android background, I wanted to try out phonegap so that I could develop multiple-platform apps relatively fast, however I am uncertain on a specific point. Is it possible to install phonegap on eclipse and code a multiple-platform app from there? Or do I have to stay installing xcode, visual basic etc and coding for every one?

我浏览了一些关于 Phonegap 的文档。来自 Android 背景,我想尝试使用 phonegap,以便我可以相对快速地开发多平台应用程序,但是我不确定具体点。是否可以在 eclipse 上安装 phonegap 并从那里编写多平台应用程序?还是我必须继续安装 xcode、visual basic 等并为每个人编码?

Can someone kindly indicate what the best practice is in this situation?

有人可以指出在这种情况下的最佳做法是什么吗?

回答by Pratik Sharma

Check out this link :

查看此链接:

Integrate Phonegap with Eclipse

将 Phonegap 与 Eclipse 集成

That will show you step by step process.

这将向您展示一步一步的过程。

if you want to use the same code for multiple platform then you have to upload the code which is under wwwfolder to Phonegapsite. They will provide you multiple builds directly. Or if you proceed separately like Android above then you have to generate separate builds with separate ides available like eclipse for Android and xcode for iphone.

如果您想在多个平台上使用相同的代码,那么您必须将www文件夹下的代码上传到Phonegap站点。他们将直接为您提供多个构建。或者,如果您像上面的 Android 一样单独进行,那么您必须使用单独的 ide 生成单独的构建,例如 eclipse for Android 和 xcode for iphone。

Thanks.

谢谢。

回答by Asteriskiiii

When you will download PhoneGap that will be included with an example just import that example & run that example in eclipse & go through all the files available in that Project . So that you will understand that which files you have to put where & how .

当您下载将包含在示例中的 PhoneGap 时,只需导入该示例并在 eclipse 中运行该示例并查看该项目中可用的所有文件。以便您了解哪些文件必须放置在何处以及如何放置。