请问有什么办法可以在Eclipse中的Andr​​oid项目整合摇篮?摇篮、项目、有什么办法可以、Andr

2023-09-12 00:28:12 作者:喜欢3巨头的投票

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

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

另外,我安装了摇篮的插件(从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:

安装这些Eclipse插件:

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

我希望它能帮助!