每个模块必须有一个唯一的路径 [英] Each module has to have a unique path
问题描述
我使用 GIT 从版本控制导入了一个项目.在导入、同步和所有这些之后,它给了我这个错误:
<块引用>错误:模块LinkedCraftMobile"、linkedcraft_android"指向文件系统中的同一目录.每个模块都必须有一个唯一的路径.
我想要一个可以使用 Android Studio 通过 GIT 直接更新的模块.
2016: 这可能是因为 .gitmodules
包含两个具有相同路径的条目,但是 square/assertj-android issues 174 指向另一个文件:
这通常是旧的 iml
文件的结果.将它们全部删除并重新导入.
奇怪,删除 .iml
并重新导入工作.
2020 年更新:作为 ArashYounesi 在第 174 期评论,Android Studio V4.0 似乎解决了这个问题.
I have imported a project from version control using GIT. After importing, syncing and all that, it gave me this error:
Error:The modules 'LinkedCraftMobile', 'linkedcraft_android' point to same directory in the file system. Each module has to have a unique path.
I wanted to have a module that can be updated directly with GIT using Android Studio.
2016: It could be because of a .gitmodules
including two entries with the same paths, but square/assertj-android issues 174 points out to another file:
This usually is the result of old
iml
files. Delete them all and re-import.Weird, removing the
.iml
and reimporting worked.
Update 2020: as commented by ArashYounesi in issue 174, Android Studio V4.0 seems to resolve the problem.
这篇关于每个模块必须有一个唯一的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!