The subproject source code cannot be imported after Gradle's project is imported into IntelliJ.
In a Gradle project, there are several subprojects.
When Gradle arrives, child items cannot be recognized by IntelliJ.
The code shown in the figure below is not automatically recognized.
This may be because your child project has not been added to the parent project.
Try to include the project in the settings.gradle file.
If you are using a Java project
Then you may need to add the following to the build.gradle:
Subprojects {apply plugin: 'java'}