被告知项目未使用的gradle构建系统时,它是

编程入门 行业动态 更新时间:2024-10-25 20:27:14
本文介绍了被告知项目未使用的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构建系统时,它是

本文发布于:2023-10-31 05:09:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1545096.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:它是   被告   项目   系统   gradle

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!