【发布时间】:2013-06-01 04:47:29
【问题描述】:
我可以使用 android 插件构建一个 gradle 项目。我想知道我们是否可以生成一个有效的 eclipse android 项目?我添加了以下内容
apply plugin: 'android'
apply plugin: 'eclipse'
当我说:我得到 gradle eclipse
E:\proj\Platform2.0\mobile\Android\Common>gradle --build-file adt_build.gradle eclipse
The TaskContainer.add() method has been deprecated and is scheduled to be removed in
Gradle 2.0. Please use the cr:eclipseClasspath
:eclipseJdt
:eclipseProject
:eclipse
BUILD SUCCESSFUL
但是当我在 Eclipse 中导入生成的项目时...它确实没有 gradle 从依赖项中导入的 jar 文件。
有什么想法吗?
【问题讨论】:
-
我正在调查同样的问题。难道
apply plugin: 'eclipse'只在eclipse中创建了一个普通的java项目?您使用的是哪个 Gradle 和 Android SDK Manager 版本?我已经发布了我是如何解决它的here