简体   繁体   中英

IntelliJ IDEA don't see project gradle modules

I have imported Gradle project into IntelliJ IDEA 2016.3.3 Community Edition. The project consist of 2 internal and 4 external gradle modules. Here is root settings.gradle file

include ':main', ':framework_test', ':framework', ':data', ':domain', ':util'
project(':data').projectDir = new File('../common/data')
project(':domain').projectDir = new File('../common/domain')
project(':framework').projectDir = new File('../common/framework')
project(':util').projectDir = new File('../common/util')

On the 'Gradle projects' pane I see all the modules are imported

“Gradle 项目”窗格

But on the 'Project' pane there are only internal modules

在此处输入图像描述

Pressing 'Synchronize' and 'Refresh all Gradle projects' buttons does not help.

Though running gradlew build from command line I see, that gladle builds all the 6 modules. But I cant't build or run project from IDE. Moreover, when I try to create run configuration, IDE can't find any of project classes.

WTF with this IDE??

I have solved this after import by going to File -> Invalidate caches/restart

After restarting the module appeared in the navigator

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