请问有什么办法可以在Eclipse中的Andr​​oid项目整合摇篮? [英] Is there any way to integrate Eclipse with Gradle in Android project?

查看:186
本文介绍了请问有什么办法可以在Eclipse中的Andr​​oid项目整合摇篮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个标准的build.gradle Android项目(也是我加android的注解)。

I have Android project with standard build.gradle (also I added android annotations).

另外,我安装了摇篮的插件(从<一个href="http://dist.springsource.org/release/GRECLIPSE/e4.3/">http://dist.springsource.org/release/GRECLIPSE/e4.3/)以我的Eclipse(开普勒)和转换后的项目来摇篮工程。

Also I installed Gradle plugin (from http://dist.springsource.org/release/GRECLIPSE/e4.3/) to my Eclipse (Kepler) and converted project to Gradle project.

不幸的是我不能运行摇篮建立在我的Eclipse(在CMD线一切正常)。

Unfortunately I cannot run Gradle build on my Eclipse (in cmd line everything works).

我的问题是如何使Eclipse的适用于摇篮一样使用Maven。

My question is how to make Eclipse works with Gradle just like with Maven.

推荐答案

在为了能够建立与Eclipse的一个Android摇篮的项目,我按照以上说明:

In order to be able to build an Android gradle project with Eclipse I followed these instructions:

  1. 安装这些Eclipse插件:

  1. Install these Eclipse plugins:

  • 在摇篮IDE(3.4.0)
  • 在Android开发工具(22.3.0)

如果你有一个老式的Andr​​oid项目的布局,改变你的 build.gradle配置资源目录,如 Android的解释 摇篮用户指南

If you have an old-style android project layout, change your build.gradle to configure source directories as explained in the Android Gradle User Guide.

如果你有一个摇篮Android项目的布局,创建两个符号链接到你的项目的根目录。

If you have a gradle android project layout, create two symbolic links into the root of your project.

LN -s钢骨混凝土/主/资源资源
LN -s钢骨混凝土/主/ AndroidManifest.xml中的Andr​​oidManifest.xml

ln -s src/main/res res
ln -s src/main/AndroidManifest.xml AndroidManifest.xml

我希望它能帮助!

这篇关于请问有什么办法可以在Eclipse中的Andr​​oid项目整合摇篮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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