Intellij Re-import Gradle Project

前端 未结 6 1506
予麋鹿
予麋鹿 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:52

    Steps that helped me:

    1. Close the project
    2. Delete ‘gradle’ and '.gradle' folders in the project root
    3. Import the project as gradle project

    See images of Gradle tab before and after

提交回复
热议问题