:app:sonarResolver failed to resolve files for :app:compileClasspath for sub module

Getting below error after upgrading sonar plugin version from 4.4.1.3373 to 7.2.2.6593.

Execution failed for task ':app:sonarResolver'.
 > Could not resolve all files for configuration ':app:compileClasspath'.
 > Could not resolve project :network.
 Required by:
 project :app
 > The consumer was configured to find a library for use during compile-time, compatible with Java 17, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally. There are several available matching variants of project :network
 The only attribute distinguishing these variants is 'com.android.build.gradle.internal.attributes.VariantAttr'. Add this attribute to the consumer's configuration to resolve the ambiguity:
 - Value: 'flavourOneDebug' selects variant: 'flavourOneDebugApiElements'
 - Value: 'flavourOneProfile' selects variant: 'flavourOneProfileApiElements'
 - Value: 'flavourOneRelease' selects variant: 'flavourOneReleaseApiElements'
 - Value: 'flavourTwoDebug' selects variant: 'flavourTwoDebugApiElements'
 - Value: 'flavourTwoProfile' selects variant: 'flavourTwoProfileApiElements'
 - Value: 'flavourTwoRelease' selects variant: 'flavourTwoReleaseApiElements'
  • ALM used - Gitlab
  • CI system used - Gitlab CI with fastlane
  • Scanner command used - “sonar -Dsonar.gradle.skipCompile=true --quiet”
  • Languages of the repository - Kotlin, Java - Android project

The code compiles and runs fine on local machine.

Hi,

Welcome to the community and thanks for this report!

Could you flip that --quiet to --info and post the log here?

 
Thx,
Ann