Eclipse Gradle Wizard 使用 SubFolder -lib 创建项目 [英] Eclipse Gradle Wizard creates project with SubFolder -lib

查看:20
本文介绍了Eclipse Gradle Wizard 使用 SubFolder -lib 创建项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 Eclipse 中创建 Gradle 项目时,结果是一个嵌套项目,其中包含一个自动创建的 -lib 文件夹.关于为什么要创建它的任何想法?

When I create a Gradle project in Eclipse the result is a nested project with a -lib folder created automatically. Any ideas on why this is being created?

推荐答案

我在 Eclipse 2021-03 上使用最新的 gradle 版本 7.0-rc-1 对此进行了测试,并重现了您创建带有 lib 子项目的嵌套项目的问题.然后我创建了一个新的 Eclipse 项目,指定要使用的 Gradle 6.6 版,并且生成的项目没有嵌套.我建议尝试 Gradle 6.6,看看你是否得到与我相同的行为.这可能会修复您的项目.

I tested this on Eclipse 2021-03 using the latest gradle version 7.0-rc-1 and reproduced your issue where a nested project with a lib subproject was created. I then made a new Eclipse project specifying Gradle version 6.6 to be used and the resulting project was not nested. I suggest trying Gradle 6.6 and seeing if you get the same behavior I got. This might fix your project.

也尝试从命令行运行 gradle init 命令,看看你得到了什么项目结构.我在我的 PC 上测试了这个,我将 gradle 5.6 作为默认版本并获得了一个非嵌套结构.你当然可以在几分钟内手动修改你的 gradle 项目,使其不被嵌套.

Also try running the gradle init command from the command line and see what project structure you get there. I tested this on my PC where I have gradle 5.6 as the default version and got a non nested structure. You can of course always manually modify your gradle project in a few minutes to not be nested.

这篇关于Eclipse Gradle Wizard 使用 SubFolder -lib 创建项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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