[ERROR] When update sourceCompatibility and targetCompatibility to JavaVersion.VERSION_11

Hello @Margarita_Nedzelska
Potential workarounds you sent are related to pure Java projects and it’s slightly different from Android ecosystem because Android engineers can’t just exclude some dependency that Android build system used.
I found similar to my issue here Error compiling Sonarqube in android kotlin project with gradle but it also hasn’t been resolved.
As an Android community are big one let’s try to find solution together because other SonarCloud users will face with the same problem very soon in the process of upgrading to Gradle 8 that requires using Java 11 source compatibility. I created very basic Android app without any extra configuration and as Sonar user I expected it should works out of the box. During log analyzing it seems like sonarqube-gradle-plugin works well, the problem somewhere in scanner plugin that donwloads dynamically in IsolatedLauncherFactory.
Maybe we need to join Sonar Sources from related issue above to us to brainstorm ideas for workaround?
Regards, Yauhen