被告知项目未使用的gradle构建系统时,它是 [英] Being told project is not using the gradle build system when it is

查看:143
本文介绍了被告知项目未使用的gradle构建系统时,它是的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Android的Studio中打开我的项目,我总是这样。

When I open my project in Android Studio, I always get this.

返回时,Android的工作室刚出来,我通过了这个过程因此该项目应具备的摇篮构建系统。有一个在该项目的根的build.gradle文件。
我仍可以生成并运行该项目,但我不明白为什么它总是说这个,因为这个项目应该使用的gradle构建系统。任何帮助,这将是巨大的。

Back when Android Studio first came out, I went through this process so the project should have the Gradle build system. There is a build.gradle file in the root of the project. I can still build and run the project, but I don't understand why it always says this since the project should use gradle build system. Any help with this would be great.

推荐答案

Android的工作室支持两个建设模式。一个是遗产,一个是的gradle基础。如果你正在使用的Andr​​oid工作室的一个非常早期的版本,也许你还在使用旧的构建模式。你需要使用gradle这个模式,那么此警告将消失,重新导入您的项目。

The android studio support two "build mode". one is "legacy" and one is "gradle based". If you are using an very early version of android studio, probably you are still using the legacy build mode. You need to re-import your project using "gradle mode" then this warning will be gone.

要做到这一点,选择文件/导入项目,选择你的项目根目录,然后在下一个对话框中选择从外部模型导入项目,然后选择gradle这个。然后,您可以选择gradle这个包装或使用您自己分配的gradle(1.8现在[二千零十三分之十二])。

To do so, select "file/import project", select your project root directory, and in the next dialog choose "Import project from external model" and select gradle. Then, you may choose "gradle wrapper" or use your own gradle distribution (1.8 for now[12/2013]).

这篇关于被告知项目未使用的gradle构建系统时,它是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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