Auto-generated folder with name 'generated'
Answered

Hello! Everytime I start my application, idea creates the new folder with name "generated", marked as source, in the "main" folder. Why does it so and what should I do to avoid it?
I removed it from Project structure, but it doesn't help.
Please sign in to leave a comment.
What IDE version do you use?
Could be https://youtrack.jetbrains.com/issue/IDEA-232367
What do you have set for Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Gradle | Build and run using option?
Do you use Settings (Preferences on macOS) | Build, Execution, Deployment | Compiler | Build project automatically?
If issue is different, please provide your build.gradle file.
set the project build and running type from idea to gradle and then remove 'generated' again ,it works for me,mybe idea will create that file when use idea for project compile type.
>mybe idea will create that file when use idea for project compile type.
IDE creates generated project directories based on the structure configuration and configuration of source generated files in Gradle build script. If you believe the created project structure is not correct it would be great to have a sample project to check this (you could attach it to a new YouTrack issue). Thank you.