简体   繁体   English

无法在Intellij Ultimate Edition 2017中创建新的Gradle项目

[英]Can't create a new Gradle project in Intellij Ultimate Edition 2017

While starting a new Gradle based java project, i get 当启动一个新的基于Gradle的Java项目时,我得到了

Error:The modules ['helloworld', 'helloworld-app_test', 'helloworld_main'] point to same directory in the file system. 错误:模块['helloworld','helloworld-app_test','helloworld_main']指向文件系统中的同一目录。 Each module has to have a unique path. 每个模块必须具有唯一的路径。

What's causing this ? 是什么原因造成的? How can it be solved? 如何解决?

I encounter it in IDEA2017.2.3. 我在IDEA2017.2.3中遇到了它。 AS this post : https://github.com/square/assertj-android/issues/174 如这篇文章: https : //github.com/square/assertj-android/issues/174

I delete .idea directory then refresh Rebuild project. 我删除.idea目录,然后刷新Rebuild项目。 After rebuild project, IDEA will recreate .idea directory and *iml files. 重建项目后,IDEA将重新创建.idea目录和*iml文件。

It work for me. 它对我有用。

This usually is the result of old iml files. 这通常是旧的iml文件的结果。 Delete all .iml files and re import them using Android Studio. 删除所有.iml文件,然后使用Android Studio重新导入。 That worked for me.. https://developer.android.com/studio/intro/migrate.html 对我有用。.https://developer.android.com/studio/intro/migrate.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM