Intellij Re-import Gradle Project

前端 未结 6 1544
予麋鹿
予麋鹿 2021-01-03 20:24

I just added a new test source directory to my Gradle project and want IntelliJ to recognize it. I can close the project and reopen the build.gradle file and ch

6条回答
  •  甜味超标
    2021-01-03 20:46

    I'm using intellij 2017 and was unable to locate the "refresh" option as described in previous versions of intellij. For me,

    ./gradlew idea corrected the issue. gradle idea should also work.

    UPDATE

    As noted in the comments, when using intellij 2017 open the build.gradle file as a project and enable the "auto import" command to avoid this issue all together!

提交回复
热议问题