Android build error with 5.1: A problem occurred configuring root project ''.

Hello,
I try to build an android project with the following error

2023-04-25T19:12:46.703+0200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2023-04-25T19:12:46.703+0200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred configuring root project ''.
2023-04-25T19:12:46.703+0200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > The project name must not be empty. Set the 'rootProject.name' or adjust the 'include' statement (see https://docs.gradle.org/6.1.1/dsl/org.gradle.api.initialization.Settings.html#org.gradle.api.initialization.Settings:include(java.lang.String[]) for more details).

If I build in DevelGame it’s fine, but I got this message every time when building in non shipping build. I’ve tried a lot of things but now I have no clue on how to make it to work.

Any idea?
Best

possibly a red herring, what directory did you run this from? e.g. you probably want to run it in “your_project\Intermediate\Android\arm64\gradle”

I’ve also been dealing with the same issue. Only when I create a new project I can build it successfully. Any ideas on how to fix this would be really appreciated