如何在保持eclipse结构目录布局的同时向我的eclipse android项目添加gradle性质?
我可以在 Spring 用gradle ide for eclipse插件做到这一点吗?
最佳答案
是的,那是可能的,而且documented:
To replace the default source folders, you will want to use srcDirs instead, which takes an array of path. This also shows a different way of using the objects involved:
sourceSets {
main.java.srcDirs = ['src/java']
main.resources.srcDirs = ['src/resources'] }
另请参阅:How to configure build.gradle files of an existing project with actionbarsherlock lib?
仅售2美分:尝试配置eclipse与gradle一起使用时,您不会对自己有所帮助,只是让您的生活更轻松,并使用Google推荐的工具。
关于android - 将Gradle Nature添加到Eclipse上的现有android项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26643756/