No android lint issues will be imported on this file

  • ALM used: Bitbucket Cloud
  • CI system used: Bitbucket Cloud
  • Scanner command used: ./gradlew sonar
  • Languages of the repository: kotlin

I have following sonarqube configuration:

property("sonar.junit.reportPaths", "build/test-results/testDebugUnitTest")
        property("sonar.androidLint.reportPaths", "build/reports/lint-results-debug.xml")

When running project I get following errors:

No input file found for /Users/user/Desktop/project/project-android/data/lint-baseline.xml. No android lint issues will be imported on this file.
No input file found for /Users/user/Desktop/project/project-android/ui-common/lint-baseline.xml. No android lint issues will be imported on this file.
No input file found for /Users/user/Desktop/project/project-android/ui-common/lint-baseline.xml. No android lint issues will be imported on this file.

This one is interesting, because I didn’t specify to look for lint-baseline files. Maybe sonar does this by default? What’s also interesting is that these files exist in exact same path, but sonar doesn’t find them. I have all inclusions, exclusions, sources and tests configurations removed from my sonar config.

How to resolve this?

Hey there.

I don’t think that the lint-baseline.xml file is actually being read, but that your androidLint report contains issues raised on the lint-baseline.xml. Can you check the content of your actual report files (lint-results-debug.xml in each module)

They contain issues found by lint. What exactly should I be looking for?

Issues reported on the file lint-baseline.xml itself.

Issue found in data module:

<issue
        id="PackageManagerGetSignatures"
        message="Reading app signatures from `getPackageInfo`: The app signatures could be exploited if not validated properly; see issue explanation for details"
        errorLine1="                    PackageManager.GET_SIGNATURES"
        errorLine2="                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="src/main/kotlin/com/project/data/providers/PackageProviderImpl.kt"
            line="21"
            column="21"/>
    </issue>

Issues in ui-common

   <issue
        id="MissingClass"
        message="Class referenced in the manifest, `com.facebook.FacebookActivity`, was not found in the project or the libraries"
        errorLine1="            android:name=&quot;com.facebook.FacebookActivity&quot;"
        errorLine2="                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="src/main/AndroidManifest.xml"
            line="15"
            column="27"/>
    </issue>

So I’m still getting these issues. Here’s how my sonar log look like:

No input file found for /Users/martynas/Desktop/project/app/src/main/AndroidManifest.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/AndroidManifest.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/AndroidManifest.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/AndroidManifest.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher_background.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher_background.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher_foreground.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher_foreground.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher_foreground.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher_foreground.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_splash_logo.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/AndroidManifest.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/AndroidManifest.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/AndroidManifest.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_advanced_identification_24px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_basic_settings_24_px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_control_units.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_eeprom.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_gauges.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher_foreground.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher_foreground.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher_foreground.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/drawable/ic_launcher_foreground.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_settings_24px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_splash_logo.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_splash_logo.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_subsystem.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/build.gradle.kts. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/values/colors.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/values/colors.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_adaptation_24_px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_advanced_identification_24px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_backup.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_basic_settings_24_px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_charts.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_clear.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_control_units.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_eeprom.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_email.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_forum.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_gauges.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_info_24_px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_live_data_24_px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_longcoding_24_px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_manuals.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_other_faults.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_outputesting_24px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_readiness.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_reset_24px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_security_access.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_settings_24px.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_subsystem.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/values/styles.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/values/styles.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/debug/res/mipmap-anydpi-v26/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/ui-common/lint-baseline.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/ui-common/lint-baseline.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/ui-components/lint-baseline.xml. No android lint issues will be imported on this file.
No input file found for /Users/martynas/Desktop/project/ui-components/lint-baseline.xml. No android lint issues will be imported on this file.

My sonar gradle configuration has these lines line:
app module → property(“sonar.androidLint.reportPaths”, “build/reports/lint-results-playDebug.xml”)
ui-common → property(“sonar.androidLint.reportPaths”, “build/reports/lint-results-debug.xml”)
ui-components → property(“sonar.androidLint.reportPaths”, “build/reports/lint-results-debug.xml”)

Files under those paths are available.

Not sure if related, but at the end of sonar log I see exception:

Could not report issue with code highlighting, using plain text instead. Check whether the product is outdated.
java.lang.UnsupportedOperationException: null
at org.sonar.api.batch.sensor.issue.internal.DefaultIssueLocation.newMessageFormatting(DefaultIssueLocation.java:97)
at org.sonarsource.kotlin.api.checks.InputFileContextImpl.message(InputFileContextImpl.kt:93)
at org.sonarsource.kotlin.api.checks.InputFileContextImpl.reportIssue(InputFileContextImpl.kt:68)
at org.sonarsource.kotlin.api.checks.AbstractCheck.reportIssue(AbstractCheck.kt:69)
at org.sonarsource.kotlin.api.checks.AbstractCheck.reportIssue(AbstractCheck.kt:88)
at org.sonarsource.kotlin.api.checks.AbstractCheck.reportIssue$default(AbstractCheck.kt:83)
at org.sonarsource.kotlin.checks.VoidShouldBeUnitCheck.visitTypeReference(VoidShouldBeUnitCheck.kt:58)
at org.sonarsource.kotlin.checks.VoidShouldBeUnitCheck.visitTypeReference(VoidShouldBeUnitCheck.kt:49)
at org.jetbrains.kotlin.psi.KtTypeReference.accept(KtTypeReference.kt:38)
at org.sonarsource.kotlin.visiting.KtChecksVisitor$visit$1$1$1.invoke(KtChecksVisitor.kt:40)
at org.sonarsource.kotlin.visiting.KtChecksVisitor$visit$1$1$1.invoke(KtChecksVisitor.kt:35)
at org.sonarsource.kotlin.api.common.MeasureDurationKt.measureDuration(MeasureDuration.kt:26)
at org.sonarsource.kotlin.visiting.KtChecksVisitor.visit(KtChecksVisitor.kt:35)
at org.sonarsource.kotlin.api.visiting.KotlinFileVisitor.scan(KotlinFileVisitor.kt:28)
at org.sonarsource.kotlin.api.sensors.AbstractKotlinSensorExecuteContext$analyzeFile$1$1.invoke(AbstractKotlinSensorExecuteContext.kt:119)
at org.sonarsource.kotlin.api.sensors.AbstractKotlinSensorExecuteContext$analyzeFile$1$1.invoke(AbstractKotlinSensorExecuteContext.kt:118)
at org.sonarsource.kotlin.api.common.MeasureDurationKt.measureDuration(MeasureDuration.kt:26)
at org.sonarsource.kotlin.api.sensors.AbstractKotlinSensorExecuteContext.analyzeFile(AbstractKotlinSensorExecuteContext.kt:118)
at org.sonarsource.kotlin.api.sensors.AbstractKotlinSensorExecuteContext.access$analyzeFile(AbstractKotlinSensorExecuteContext.kt:53)
at org.sonarsource.kotlin.api.sensors.AbstractKotlinSensorExecuteContext$analyzeFiles$2$1.invoke(AbstractKotlinSensorExecuteContext.kt:101)
at org.sonarsource.kotlin.api.sensors.AbstractKotlinSensorExecuteContext$analyzeFiles$2$1.invoke(AbstractKotlinSensorExecuteContext.kt:100)
at org.sonarsource.kotlin.api.common.MeasureDurationKt.measureDuration(MeasureDuration.kt:26)
at org.sonarsource.kotlin.api.sensors.AbstractKotlinSensorExecuteContext.analyzeFiles(AbstractKotlinSensorExecuteContext.kt:100)
at org.sonarsource.kotlin.api.sensors.AbstractKotlinSensor.execute(AbstractKotlinSensor.kt:68)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:163)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:159)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:156)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:130)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:396)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at jdk.proxy8/jdk.proxy8.$Proxy196.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarqube.gradle.SonarTask.run(SonarTask.java:131)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:248)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:233)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:216)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:199)
at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:166)
at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:50)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:28)
at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.executeDelegateBroadcastingChanges(CaptureStateAfterExecutionStep.java:100)
at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:72)
at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:50)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:179)
at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:70)
at org.gradle.internal.Either$Right.fold(Either.java:175)
at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:59)
at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:68)
at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:46)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:36)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:25)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:91)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:55)
at java.base/java.util.Optional.orElseGet(Optional.java:364)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:37)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:77)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:38)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:94)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:49)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:71)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:45)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNonEmptySources(SkipEmptyWorkStep.java:177)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:81)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:53)
at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:32)
at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:21)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:75)
at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:41)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:32)
at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:293)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:21)
at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:47)
at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:34)
at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:64)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:146)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:135)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:337)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:324)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:317)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1589)

What could be causing this?

Hey there.

Let’s take this file as an example.

Is this file visible in the Code tab of your sonar cloud project (I.e. it’s being analyzed by SonarCloud)?

No, this file is not visible in code tab.
I have following config in app project:

sonar {
    properties {
        property("sonar.sources", "src/main")
        property("sonar.tests", "src/test")
        property("sonar.inclusions", listOf("**/*.kt", "**/*.xml"))
        property("sonar.junit.reportPaths", "build/test-results/testPlayDebugUnitTest")
        property("sonar.androidLint.reportPaths", "build/reports/lint-results-playDebug.xml")
    }
}

What would be the preffered solution in this case?

The big question is, I guess, why /Users/martynas/Desktop/project/app/src/main/res/drawable/ic_launcher.xml isn’t being indexed when **/*.xml files are being included under src/main.

And I’m out of ideas. I’ll flag this for some experts.

Hello @Martynas_Sustavicius,

Could you, please, let me know where you apply sonar plugin? Is it in the root module? And which plugin version you’re using?

And another question, why do you need to specify sources, sonar should be able to detect them automatically.

Could you, please run the sonar task with -DdumpToFile=out.properties argument and share the content of out.properties with me?

Best,
Margarita