简体   繁体   中英

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

While starting a new Gradle based java project, i get

Error:The modules ['helloworld', 'helloworld-app_test', 'helloworld_main'] point to same directory in the file system. Each module has to have a unique path.

What's causing this ? How can it be solved?

I encounter it in IDEA2017.2.3. AS this post : https://github.com/square/assertj-android/issues/174

I delete .idea directory then refresh Rebuild project. After rebuild project, IDEA will recreate .idea directory and *iml files.

It work for me.

This usually is the result of old iml files. Delete all .iml files and re import them using Android Studio. That worked for me.. https://developer.android.com/studio/intro/migrate.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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