gpt4 book ai didi

android - .iml 文件在删除后重新生成

转载 作者:行者123 更新时间:2023-11-29 18:55:24 28 4
gpt4 key购买 nike

我在我的项目中使用了一个库。它是.aar 格式。起初我在我的项目中添加了库版本 1.0。几个月后,有一个新版本的图书馆。我从项目中删除了以前的 .aar 库,并从项目结构中删除了库的文件夹。添加新库后。我在我的项目中看到了以前库的 .iml 文件,并且新库也添加到了项目中。我尝试删除旧库的 .iml 但它又重新生成了。我该如何解决这个问题?

我什至尝试从"file"->“项目结构”中删除它。但是它重新生成了之前库的.iml文件。

我正在使用最新的 android studio 3.1.1

新的是version_17(calendar-release 是旧的): enter image description here

最佳答案

什么是IML文件

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.

您已从应用程序依赖项中删除了该模块。但是你还没有从你的项目中删除它 settings.gradle

所以你的项目中仍然有你的旧模块,但你没有使用它。从 settings.gradle 中删除它。清理并重建项目,您将不会再看到它。

关于android - .iml 文件在删除后重新生成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49943342/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com