Android Studio无法生成IML文件? [英] android studio not generating iml file?
问题描述
我是android开发人员,遇到了一些问题,通常我不在乎项目文件夹中的.iml文件,但我的上级说我在我的项目中没有.iml文件.我不知道.iml文件的用途以及如何使用它.
hi i am android developer and i am getting some problem , usually i do not care about .iml file in project folder but my senior said me that i do not have .iml file in my project . i do not know what the usage of .iml file and how to use it .
但是最主要的是android studio不会为我的任何项目生成.iml文件.例如,在其他开发人员项目中,如果项目名称为apple,那么项目文件夹中将没有apple.iml,但是在我看来,这没有发生.我还更新了Android Studio,希望它能得到修复,但没有得到解决.
but the main thing is that android studio is not generating .iml file for my any project . for example in other developers project , if project name is apple than there would be apple.iml in project folder but it is not happening in my case . i have also updated my Android Studio in hope that it would get fix but it didn't .
好吧,请帮助我如何解决此问题,并告诉我.iml文件在android项目中的用途是什么
well , please help me how to fix this problem and also tell me what is the usage of .iml file in android projects
推荐答案
IML是由IntelliJ IDEA(一种用于开发Java应用程序的IDE)创建的模块文件.它存储有关开发模块的信息,该模块可以是Java,Plugin,Android或Maven组件.保存模块路径,依赖项和其他设置.
IML is a module file created by IntelliJ IDEA, an IDE used to develop Java applications. It stores information about a development module, which may be a Java, Plugin, Android, or Maven component; saves the module paths, dependencies, and other settings.
如果您的项目中未生成.iml文件,有两种方法,
In case if an .iml file is not generated on your project, there are two ways to do that,
第一:
- 转到Android Studio并打开您的项目.
- 转到文件
- 选择与Gradle文件同步项目
第二:
- 关闭您的Android Studio
- 转到您的根项目目录
- 删除.idea文件夹.如果看不见,您可以检查隐藏的文件夹
- 再次导入同一项目.
这应该重新生成您的.iml文件
This should re-generate your .iml files
这篇关于Android Studio无法生成IML文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!