简体   繁体   English

配置Eclipse以进行Phonegap构建

[英]Configure Eclipse for Phonegap build

I am new to Phonegap and have succesfully created my first app and compiled first on-line then set up phonegap, android SDK etc locally so I can build and run the app in the emulator using 'phonegap run android' at the command prompt (windows). 我是Phonegap的新手,已经成功创建了我的第一个应用程序,并首先在网上进行了编译,然后在本地设置了phonegap,android SDK等,因此我可以在命令提示符下使用“ phonegap run android”在模拟器中构建和运行该应用程序)。

For an IDE I installed Eclipse and imported the project. 对于IDE,我安装了Eclipse并导入了项目。 I can now run the project from within Eclipse. 现在,我可以从Eclipse中运行该项目。

However I am really struggling with the Eclipse build. 但是,我真的在Eclipse构建方面苦苦挣扎。 It's taken days already to solve all the problems and get to this stage but I've reached the point where I can't make progress although it would seem so simple. 解决所有问题并到达此阶段已经花费了几天的时间,但是我已经到达了无法取得进展的地步,尽管它看起来是如此简单。

The build project option is disabled. 构建项目选项被禁用。 It turns on if I add something under 'Builders' under 'Configure Build Path...' but I have no idea what I should be doing here. 如果我在“配置构建路径...”下的“构建器”下添加一些内容,它将打开,但是我不知道该在这里做什么。

I can go back to the CMD prompt and build, refresh in Eclipse and run the modified version but this can't be the right way to do it? 我可以返回CMD提示符并进行构建,在Eclipse中刷新并运行修改后的版本,但这不是正确的方法吗?

I just need to tell Eclipse to 'phonegap build'. 我只需要告诉Eclipse'phonegap build'。 But how? 但是如何?

When you create a project using PhoneGap it creates a Gradle based build which can be opened in Android Studio or IntelliJ IDEA . 当您使用PhoneGap创建项目时,它将创建一个基于Gradle的版本,可以在Android StudioIntelliJ IDEA中打开它。 I recommend using Android Studio for PhoneGap projects. 我建议将Android Studio用于PhoneGap项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM