"Could not find a default branch to fall back on" GitLab Error

Hi Im having a same issue.
My environment is:
project in Java
Build in gradle

I configured the build.gradle like the first analisys with the tutorial in sonarcloud page, but i still have a exception.

org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) Caused by: Could not find a default branch to fall back on.`

I found a doc saying the first analisys is on default main Branch, and my analisys is on default MAIN Branch.

Hey there.

Most often, this indicates that the wrong organization key or project key are being defined in your build.gradle

sonarqube {
  properties {
    property "sonar.projectKey", "colinm_sonarsource_myproject"
    property "sonar.organization", "colinm_sonarsource"

Does your configuration match exactly what you see in the SonarCloud UI? Is your project bound?