Sonarcloud failed in java project

I’m using gitlab CI/CD and I’m getting this error

FAILURE: Build failed with an exception.

  • What went wrong:

Could not determine the dependencies of task ‘:app:compileMobileDebugAndroidTestJavaWithJavac’.

SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project’s local properties file at .


On the face of it, this looks like a basic compile error which is beyond our scope.

Unless you encountered this during the analysis task? If so, we really need more details to be able to help you.