每个模块必须具有唯一的路径 [英] Each module has to have a unique path

查看:72
本文介绍了每个模块必须具有唯一的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用GIT从版本控制中导入了一个项目.导入,同步等等之后,它给了我这个错误:

I have imported a project from version control using GIT. After importing, syncing and all that, it gave me this error:

错误:模块'LinkedCraftMobile','linkedcraft_android'指向文件系统中的同一目录. 每个模块必须具有唯一的路径.

Error:The modules 'LinkedCraftMobile', 'linkedcraft_android' point to same directory in the file system. Each module has to have a unique path.

我想拥有一个可以使用Android Studio通过GIT直接更新的模块.

I wanted to have a module that can be updated directly with GIT using Android Studio.

推荐答案

2016:可能是由于.gitmodules包括两个具有相同路径的条目,但

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:

这通常是旧的iml文件的结果.全部删除并重新导入.

This usually is the result of old iml files. Delete them all and re-import.

很奇怪,删除了.iml并重新导入是可行的.

Weird, removing the .iml and reimporting worked.

2020年更新:为由ArashYounesi在第174期中评论,Android Studio V4.0似乎可以解决问题.

Update 2020: as commented by ArashYounesi in issue 174, Android Studio V4.0 seems to resolve the problem.

这篇关于每个模块必须具有唯一的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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