# Not seeing Android Lint report issues in SonarQube server

**URL:** <https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698>\
**Category:** SonarQube Server / Community Build\
**Tags:** android, sonarqube\
**Created:** [June 12, 2025, 4:38pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698 "2025-06-12T16:38:55Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![richard.w](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@richard.w](https://community.sonarsource.com/u/richard.w)\
**Post date:** [June 12, 2025, 4:38pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/1 "2025-06-12T16:38:55Z")

</div>

Hello,

I am using SonarQube server 2025.2. I have been trying to see my Android lint report issues in the SonarQube server UI. I have verified that I am importing the report properly using the property `sonar.androidLint.reportPaths`, but the issues in the project directory are not showing up. My current understanding is that I need some sort of plugin in order for SonarQube to read the issues in the report and create an issue in SonarQube? Is there an existing plugin that is recommended to do this?

A workaround that we have found is to import the Android lint report using the property `sonar.externalIssuesReportPaths` in our gradle file and transform the lint report to conform to the Sonar rules and issues object format. This is unideal, so we’re hoping there’s a simple supported solution here?

We had this working when we were on SonarQube Cloud, then we migrated to SonarQube server and believe that broke this behavior.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [June 13, 2025, 1:16pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/2 "2025-06-13T13:16:03Z")

</div>

Hi,

Welcome to the community!

> [@richard.w](#):
>
> My current understanding is that I need some sort of plugin

Nope. We offer this functionality natively.

Can you share your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

[This guide](https://community.sonarsource.com/t/how-to-find-logs-about-importing-code-coverage/73317) will help you find them.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![richard.w](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@richard.w](https://community.sonarsource.com/u/richard.w)\
**Post date:** [June 13, 2025, 4:04pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/3 "2025-06-13T16:04:51Z")

</div>

[sonarqube\_scan\_testing-11.log](https://community.sonarsource.com/uploads/short-url/q5ZtVhzGP6R5SUVz6V7aS5NJi7V.log) (299.1 KB)

Here is the scanner log!

I am expecting to see this issue in SonarQube

```auto
        id="ObsoleteSdkInt"
        severity="Error"
        message="This folder configuration (`v26`) is unnecessary; `minSdkVersion` is 26. Merge all the resources in this folder into `mipmap-anydpi`."
        category="Performance"
        priority="6"
        summary="Obsolete SDK_INT Version Check"
        explanation="This check flags version checks that are not necessary, because the `minSdkVersion` (or surrounding known API level) is already at least as high as the version checked for.&#xA;&#xA;Similarly, it also looks for resources in `-vNN` folders, such as `values-v14` where the version qualifier is less than or equal to the `minSdkVersion`, where the contents should be merged into the best folder.">
        <location
            file="/Users/richard.r.wang/git/pdsw-app-passport-android/app/src/main/res/mipmap-anydpi-v26"/>
    </issue>

```

and here is the import line from the logs that would include this issue

```auto
[2025-06-13T14:51:40.778Z] Importing /home/jenkins/agent/workspace/unit-test_sonarqube_scan_testing/app/build/reports/lint-results-debug.xml
[2025-06-13T14:51:40.778Z] Sensor Import of Android Lint issues [kotlin] (done) | time=23ms

```

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [June 13, 2025, 4:17pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/4 "2025-06-13T16:17:37Z")

</div>

Hi,

Thanks for the log.

There’s a little more to the Android Lint report processing than you excerpted:

> ```auto
> [2025-06-13T14:51:40.778Z] Sensor Import of Android Lint issues [kotlin]
> [2025-06-13T14:51:40.778Z] Importing /home/jenkins/agent/workspace/unit-test_sonarqube_scan_testing/app/build/reports/lint-results-debug.xml
> [2025-06-13T14:51:40.778Z] No input file found for /home/jenkins/agent/workspace/unit-test_sonarqube_scan_testing/app/build/generated/source/kapt/devDebug/com/sonos/passport/caching/database/AppDatabase_Impl.java. No android lint issues will be imported on this file.
> [2025-06-13T14:51:40.778Z] Sensor Import of Android Lint issues [kotlin] (done) | time=23ms
> 
> ```

And then

> ```auto
> [2025-06-13T14:51:40.778Z] Sensor Import of Android Lint issues [kotlin]
> [2025-06-13T14:51:40.778Z] Importing /home/jenkins/agent/workspace/unit-test_sonarqube_scan_testing/app/build/reports/lint-results-debug.xml
> [2025-06-13T14:51:40.778Z] No input file found for /home/jenkins/agent/workspace/unit-test_sonarqube_scan_testing/app/build/generated/source/kapt/devDebug/com/sonos/passport/caching/database/AppDatabase_Impl.java. No android lint issues will be imported on this file.
> [2025-06-13T14:51:40.778Z] Sensor Import of Android Lint issues [kotlin] (done) | time=23ms
> 
> ```

Altho the other 5 instances of Android Lint import in the log are unremarkable.

How many files are reflected in the Android Lint report? Is it more than just these two missing files? And how many of them map to the list of files with invalid characters? E.G.:

> ```auto
> [2025-06-13T14:50:14.260Z] Invalid character encountered in file /home/jenkins/agent/workspace/unit-test_sonarqube_scan_testing/app/src/test/kotlin/com/sonos/passport/contentsdk/extensions/ResourcePresentationExtensionsTests.kt at line 240 for encoding US-ASCII. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
> [2025-06-13T14:50:14.261Z] Invalid character encountered in file /home/jenkins/agent/workspace/unit-test_sonarqube_scan_testing/app/src/test/kotlin/com/sonos/passport/ui/mainactivity/screens/settings/speechenhancement/viewmodel/SpeechEnhancementMenuViewModelTest.kt at line 161 for encoding US-ASCII. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
> [2025-06-13T14:50:14.261Z] Invalid character encountered in file /home/jenkins/agent/workspace/unit-test_sonarqube_scan_testing/app/src/main/kotlin/com/sonos/passport/ui/mainactivity/screens/settings/alarms/views/AlarmsMenuScreen.kt at line 182 for encoding US-ASCII. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
> 
> ```

In fact, for the missing Android Lint issues, do their corresponding files show up in SonarQube?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![richard.w](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@richard.w](https://community.sonarsource.com/u/richard.w)\
**Post date:** [June 13, 2025, 4:59pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/5 "2025-06-13T16:59:37Z")

</div>

> [@ganncamp](#):
>
> reflected in the Android Lin

Thanks for linking the extra bits there!

The lint report reflects quite a few files 10+. None of the files match the list of files with invalid characters.

I do see the affected files in SonarQube under the code tab.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [June 13, 2025, 5:18pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/6 "2025-06-13T17:18:01Z")

</div>

Hi,

Okay, can you add `-Dsonar.verbose=true` to your analysis command and post that log, redacted as necessary? Maybe that will give us more insight into what’s going on.

&nbsp;  
Thx,  
Ann

---

<div class="post-metadata">

**Author:** ![richard.w](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@richard.w](https://community.sonarsource.com/u/richard.w)\
**Post date:** [June 13, 2025, 5:58pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/7 "2025-06-13T17:58:41Z")

</div>

Alrighty Ann. Here’s the log with the verbose option set to true.  
[sonar\_2.log](https://community.sonarsource.com/uploads/short-url/tVWPHLjQXGonb88LajoP6GXKOD7.log) (260.8 KB)

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [June 13, 2025, 6:23pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/8 "2025-06-13T18:23:50Z")

</div>

Hi,

Thanks for the log. Sadly, there’s no further detail.

I’m going to flag this for the team, but it may be a while before they get to it.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![richard.w](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@richard.w](https://community.sonarsource.com/u/richard.w)\
**Post date:** [June 13, 2025, 6:55pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/10 "2025-06-13T18:55:57Z")

</div>

Thanks for taking a look Ann. Is there a general timeline I can expect? Few months? A year? It will help our team determine next steps.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [June 13, 2025, 6:58pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/11 "2025-06-13T18:58:16Z")

</div>

Hi,

They’ve been pulled to focus on something specific. I would hope they’re able to look at other things in… a month?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![antonio.aversa](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/antonio.aversa/32/40757_2.png) [@antonio.aversa](https://community.sonarsource.com/u/antonio.aversa)\
**Post date:** [June 16, 2025, 9:47am UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/13 "2025-06-16T09:47:46Z")

</div>

Hi @richard.w,

I am taking over on this issue.

I have compared the two provided log files and I have the impression that the `-Dsonar.verbose=true` parameter that @ganncamp suggested was not taken into account due to the `--info` passed to the `./gradlew` command.

Could you please replace `--info` with `--debug` and provide new logs?

What I think is happening here is the following:

- the issue you are expecting to see (`ObsoleteSdkInt`) is on a resource file (`mipmap-anydpi-v26`) that has no extension
- our Android Lint importer only keeps issues on files that are indexed and with one of the following extensions: xml, java, kt, kts, properties, gradle, cfg, txt
- so the resource file `mipmap-anydpi-v26` is skipped with a debug log, that is filtered out by Gradle due to `--info`

If there is at least a file which:

1. is indexed (i.e. it appears on SonarQube Server UI)
2. has one of the extensions listed above

then my hypothesis is incorrect, and we will explore other paths.

Thanks,  
Antonio

---

<div class="post-metadata">

**Author:** ![richard.w](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@richard.w](https://community.sonarsource.com/u/richard.w)\
**Post date:** [June 16, 2025, 3:10pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/14 "2025-06-16T15:10:28Z")

</div>

Hey there Antonio!

I’ve got the new logs here!

---

<div class="post-metadata">

**Author:** ![antonio.aversa](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/antonio.aversa/32/40757_2.png) [@antonio.aversa](https://community.sonarsource.com/u/antonio.aversa)\
**Post date:** [June 16, 2025, 3:24pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/15 "2025-06-16T15:24:36Z")

</div>

Hi @richard.w,

Have you added the `--debug` parameter to the `./gradlew` command?  
I cannot see any debug logs in your log file.  
When I run locally on a test project, I see logs like:

```auto
#############################################################################
   WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

   Debug level logging will leak security sensitive information!

   For more details, please refer to https://docs.gradle.org/8.13/userguide/logging.html#sec:debug_security in the Gradle documentation.
#############################################################################

```

… which is an important point, by the way: before sharing debug logs with us, please make sure there is no sensitive information in there.

We can also initiate a private conversation, if you want to share logs privately.

Best regards,  
Antonio

---

<div class="post-metadata">

**Author:** ![richard.w](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@richard.w](https://community.sonarsource.com/u/richard.w)\
**Post date:** [June 16, 2025, 3:53pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/16 "2025-06-16T15:53:21Z")

</div>

Let’s do a private conversation and post the results back here?

---

<div class="post-metadata">

**Author:** ![antonio.aversa](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/antonio.aversa/32/40757_2.png) [@antonio.aversa](https://community.sonarsource.com/u/antonio.aversa)\
**Post date:** [June 16, 2025, 5:26pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/17 "2025-06-16T17:26:09Z")

</div>

Hi @richard.w .

Sure! If you activate the chat functionality in the DM section, I will write you there.

Best regards,  
Antonio

---

<div class="post-metadata">

**Author:** ![richard.w](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@richard.w](https://community.sonarsource.com/u/richard.w)\
**Post date:** [June 16, 2025, 6:00pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/18 "2025-06-16T18:00:43Z")

</div>

I’ve searched far and wide on this platform for the DM section, but I haven’t been able to find it. Would you have the steps to access that?

---

<div class="post-metadata">

**Author:** ![richard.w](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@richard.w](https://community.sonarsource.com/u/richard.w)\
**Post date:** [June 16, 2025, 8:06pm UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/20 "2025-06-16T20:06:46Z")

</div>

> [@antonio.aversa](#):
>
> our Android Lint importer only keeps issues on files that are indexed and with one of the following extensions: xml, java, kt, kts, properties, gradle, cfg, txt

I ran another test here and with the allowed extensions I am seeing issues pop up! I believe that was it. Thank you Antonio.

---

<div class="post-metadata">

**Author:** ![antonio.aversa](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/antonio.aversa/32/40757_2.png) [@antonio.aversa](https://community.sonarsource.com/u/antonio.aversa)\
**Post date:** [June 17, 2025, 10:01am UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/21 "2025-06-17T10:01:01Z")

</div>

Hi @richard.w,

Good to hear it solved your problem!  
For the future, we will consider including extension-less files into our analysis, when they are defined under the resource folder. This way, you won’t lose any issue when uploading the AndroidLint issues to SonarQube.

Best regards,  
Antonio

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [June 24, 2025, 10:04am UTC](https://community.sonarsource.com/t/not-seeing-android-lint-report-issues-in-sonarqube-server/142698/23 "2025-06-24T10:04:46Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
