在 Eclipse 和 IDEA 中使用 gradle 项目 [英] Using gradle project in both Eclipse and IDEA
问题描述
我在 Android Studio 中创建了一个 Android 项目.它在 Android Studio、IDEA 和构建机器中运行良好.现在我们有几个新的开发人员在 Eclipse 中工作,但我无法设置它.是否可以将 gradle(android studio) 项目转换为 Eclipse IDE?
I have an Android project created in Android Studio. It works fine in Android Studio, IDEA and build machine. Now we have several new developers who work in Eclipse and I can't set it up. Is it possible to convert gradle(android studio) project to Eclipse IDE?
推荐答案
您必须在 Gradle 和 Eclipse 中分别维护构建;Eclipse 本身无法使用 Android Gradle 构建器.它在我们要实施的清单上,但我们还没有制定路线图.
You'll have to maintain the build separately in both Gradle and Eclipse; Eclipse can't use the Android Gradle builder natively. It's on our list of things to implement but we don't have a roadmap for it yet.
如果您使用类似 Eclipse 的目录结构并调整 Gradle 构建文件以使用它,事情会变得最简单.请参阅在 Android Studio 导入期间维护目录结构以获取建议.
Things will go easiest if you use an Eclipse-like directory structure and adapt the Gradle build file to work with it. See Maintaining directory structure during Android Studio import for advice.
这篇关于在 Eclipse 和 IDEA 中使用 gradle 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!