我有带有标准 build.gradle 的 Android 项目(我还添加了 android 注释).
I have Android project with standard build.gradle (also I added android annotations).
我还安装了 Gradle 插件(来自 http://dist.springsource.org/release/GRECLIPSE/e4.3/) 到我的 Eclipse (Kepler) 并将项目转换为 Gradle 项目.
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 上运行 Gradle build(在 cmd 行中一切正常).
Unfortunately I cannot run Gradle build on my Eclipse (in cmd line everything works).
我的问题是如何让 Eclipse 像使用 Maven 一样使用 Gradle.
My question is how to make Eclipse works with Gradle just like with Maven.
为了能够使用 Eclipse 构建 Android gradle 项目,我遵循了以下说明:
In order to be able to build an Android gradle project with Eclipse I followed these instructions:
安装这些 Eclipse 插件:
Install these Eclipse plugins:
如果你有一个老式的 android 项目布局,改变你的build.gradle 配置源目录,如 AndroidGradle 用户指南.
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.
如果您有一个 gradle android 项目布局,请在项目的根目录中创建两个符号链接.
If you have a gradle android project layout, create two symbolic links into the root of your project.
ln -s src/main/res res
ln -s src/main/AndroidManifest.xml AndroidManifest.xml
ln -s src/main/res res
ln -s src/main/AndroidManifest.xml AndroidManifest.xml
希望对你有帮助!
这篇关于有没有办法在 Android 项目中将 Eclipse 与 Gradle 集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
在Android上将字符串转换为整数Converting a string to an integer on Android(在Android上将字符串转换为整数)
Android Jack mockito 替代品Android Jack mockito alternative(Android Jack mockito 替代品)
是否可以使用 Espresso 的 IdlingResource 等到某个视图Is it possible to use Espresso#39;s IdlingResource to wait until a certain view appears?(是否可以使用 Espresso 的 IdlingResource 等到某个视图
将 window tester 与 eclipse 集成以测试 UIIntegrate window tester with eclipse for testing UI(将 window tester 与 eclipse 集成以测试 UI)
如何使用 Google UiAutomator 按两次按钮?How to press a button twice using Google UiAutomator?(如何使用 Google UiAutomator 按两次按钮?)
如何将特定键绑定到 Eclipse 中的不同启动配置?How can I bind a specific key to different launch configurations in Eclipse?(如何将特定键绑定到 Eclipse 中的不同启动配置?)