导出Eclipse项目的摇篮 [英] Exporting an eclipse project as gradle

查看:127
本文介绍了导出Eclipse项目的摇篮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在想我的Eclipse项目导出为一个摇篮构建文件使用它与Android Studio,但我似乎无法让它正常工作。 当我点击完成什么也没有发生。如果我反复点击它,我可以看到一个进度条,显示了一毫秒,然后就消失了。

I have been trying to export my eclipse project as a gradle build file to use it with Android Studio but I can't seem to make it work correctly. When I click "Finish" nothing happens. If I repeatedly click it, I can see a progress bar that shows for a millisecond and then vanishes.

我的ADT是22.3版本(这是最新的),我已经尝试了所有我发现谷歌以及解决方案的。

My ADT is version 22.3 (which is the latest) and I have tried all of the solutions I found on google as well.

类似的问题都可以在这里找到: Android项目的Eclipse的摇篮出口不执行任何操作 无法从Eclipse中生成gradle.build文件

Similar questions can be found here: Eclipse Gradle export of Android project does nothing Cannot generate gradle.build files from Eclipse

正如你所看到的,是不是真的对这个问题的固溶体,但人们写下自己手动创建它。我不知道怎么做,但。

As you can see, there is not really a solid solution for this problem, but people wrote they created it manually. I don't know how to do so though.

是否有这个问题,我没有听说有什么解决办法?如果没有,我怎么能手动创建该文件?

Is there any solution for this problem that I haven't heard of? If not, how can I create the file manually?

推荐答案

显然,出口到摇篮支持Eclipse中无法处理附加到一个Android库项目一期工程的当前版本。在这种情况下,您将需要(暂时)分离的Andr​​oid库项目,主要的出口项目,然后修改 build.gradle 使用库项目(<一href="http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Referencing-a-Library">manually或者通过Android的工作室)。

Apparently, the current edition of the export-to-Gradle support in Eclipse cannot handle a project that is attached to an Android library project. In that case, you would need to (temporarily) detach the Android library project, export the main project, then modify build.gradle to use the library project (manually or via Android Studio).

这篇关于导出Eclipse项目的摇篮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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