简体   繁体   English

在日食中建立gradle

[英]building gradle in eclipse

I'm new to working with gradle but I'm somewhat familiar with Eclipse. 我是使用gradle的新手,但是对Eclipse有点熟悉。 When I discovered I couldn't build gradle projects directly from eclipse, I searched for solutions and chose to create use the external tools Configuration to run my program. 当我发现无法直接从eclipse构建gradle项目时,我搜索了解决方案,并选择使用外部工具Configuration创建程序以运行我的程序。 I used the "--gui" option in my configurations. 我在配置中使用了“ --gui”选项。 This worked for a while but lately I've been getting these messages: Failed to connect to gradle process for command "tasks" 这工作了一段时间,但最近我一直收到以下消息:无法连接到gradle进程以获取命令“任务”

FAILURE: Build failed with an exception. 失败:构建失败,发生异常。

*What went wrong: A problem occurred evaluating initialization script. *出了什么问题:评估初始化脚本时发生问题。

Could not connect to GUI server at port 53503 无法通过端口53503连接到GUI服务器

The port number is different with each error. 每个错误的端口号都不相同。 I've tried restarting eclipse, sometimes that works, most times It doesn't. 我尝试重新启动Eclipse,有时可以正常工作,但多数情况下却无效。 Does anyone understand this error and know a solution for it 有谁知道这个错误并知道解决方法

如果您的Eclipse版本未安装Gradle,请在Eclipse Marketplace中搜索Gradle。

I downloaded Eclipse Mars v4.5.1, as per the suggestion above, and downloaded the Gradle official plugin for Eclipse, Buildship , from the Eclipse Market place 按照上述建议,我下载了Eclipse Mars v4.5.1,并从Eclipse Market地方下载了Gradle官方Eclipse Buildship插件。

Help -> Eclipse MarketPlace... -> Search -> Buildship -> Install 帮助-> Eclipse MarketPlace ...->搜索->建造->安装

Not a solution to my exact question, but a solution to my problem 不是我确切问题的解决方案,而是我问题的解决方案

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

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