不使用摇篮在Android Studio中 [英] Not Use Gradle In Android Studio

查看:136
本文介绍了不使用摇篮在Android Studio中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我升级到Android工作室的最新版本,它不再承认 .iml 文件作为项目。 previously,只从源导入Android项目将创建只是一个 .iml 文件,但现在它创造了一大堆的摇篮文件,这实在是烦人。

I upgraded to the latest release of Android Studio and it no longer recognizes .iml files as projects. Previously, importing an Android project from just sources would create just an .iml file but now it creates a whole bunch of Gradle files which is really annoying.

有没有办法让Android的工作室不使用摇篮,只是 .iml 项目?

Is there a way to get Android studio to not use Gradle and just .iml projects?

推荐答案

Android的工作室是基于IntelliJ IDEA的其中.iml文件的IntelliJ IDEA模块文件,其中包含有关模块的所有信息,其在​​项目中的依赖关系,每个模块将有其自己.iml文件,该文件是在的Intellij项目结构的一部分。哪里的build.gradle文件是通过构建的gradle构建系统应用程序。

Android Studio is based on Intellij Idea in which .iml files are "IntelliJ IDEA Module" file which contains all information about module's its dependencies in the projects, each module will have its own .iml file which is a part of project structure in Intellij. Where build.gradle files are for building your application using gradle build system.

在AS 0.4.3很多改进进口和自动摇篮转换Eclipse项目不允许进口Eclipse项目,因为它是完成的。

In AS 0.4.3 a lot of improvements are done for importing and converting eclipse project automatically in Gradle which doesn't allow to import eclipse project as it is.

我找到了一个解决办法做到这一点,请按照下列步骤

I found a workaround to do this please follow the steps


  • 创建一个新的文件夹/目录

  • 将您的Eclipse项目里面

  • 现在,从进口选项选择新创建的目录,而不是直接的Eclipse项目目录。

Studio将给你一个建议尽快搬进摇篮项目,因为它是用进口做,不这样做。

Studio will give you a suggestion to move the project in Gradle as soon as it is done with import, don't do that.

但我强烈建议你开始使用gradle这个构建系统。

But I strongly recommend you to start using gradle build system.

在有这里的斯科特的解释一下:

Have a look in to the Scott's explanation here :

<一个href=\"http://stackoverflow.com/questions/21421248/android-studio-0-4-3-eclipse-project-without-gradle/21422342#21422342\">Android工作室0.4.3 Eclipse项目的gradle没有

这篇关于不使用摇篮在Android Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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