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.

1
4 comments

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.

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user
  • This phenomenon does confuse development
0

>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.

0

Please sign in to leave a comment.