Getting started for Android Project

We are trying to integrate sonar-cloud in our android project which uses java and kotlin language.
After triggering the pipeline, we are facing this error message during code analysis. Was trying to fix it in different ways but was not able to find a solution. Is there any other way to integrate into android or has anyone done that before?

Here is the pipeline details.

  - task: SonarCloudPrepare@1
    displayName: Prepare analysis on SonarCloud
    continueOnError: True
      SonarCloud: ********
      organization: *******
      scannerMode: Other
      extraProperties: "# Additional properties that will be passed to the scanner, \n# Put one key=value per line, example:\n# sonar.exclusions=**/*.bin\n\nsonar.sources=app/src/main/javag\nsonar.inclusions = app/src/main/java/\nsonar.exclusions=app/src/androidTest/java/\nsonar.scm.disabled=true\nsonar.test.exclusions=app/src/androidTest/java/\nsonar.debug = true\n"
  - task: Gradle@2
    displayName: gradlew assembleDebug
    continueOnError: True
      wrapperScript: $(BuildParameters.wrapperScript)
      tasks: assembleDebug
      testResultsFiles: '**/build/test-results/TEST-*.xml'
      sqAnalysisEnabled: true
  - task: AndroidSigning@3
    displayName: Signing and aligning APK file(s) **/*.apk
      apksign: false
      zipalign: false
  - task: SonarCloudAnalyze@1
    displayName: Run Code Analysis
    enabled: False
  - task: PublishBuildArtifacts@1
    displayName: 'Publish Artifact: drop'
    condition: succeededOrFailed()
      PathtoPublish: $(build.artifactstagingdirectory)
  - task: SonarCloudPublish@1
    displayName: Publish Quality Gate Result

Hey there.

These are actually warnings that should not fail the build. The error is probably hidden a bit deeper. I would recommend passing --info or --debug to get more logs out of the gradle command.

Hello Colin,
Here is the detailed log. I have removed some info as they contain sensitive data. Let me know If I can email/ DM the whole log.

details_logs.txt (50.6 KB)

:face_exhaling: gradle logs drive me crazy… Can you try again with --stacktrace?