I have an interesting issue.
Environment: gradle wrapper 4.0.1, kotlin 1.1.3-2, IntelliJ Ultimate 2017.2.2
Build → Rebuild project works
./gradlew build works
gradle build initiated from Grdle projects view within IntelliJ fails with cannot resolve symbol errors
Problem started after I moved some kotlin classes from one package to another.