Lint Report: 6 warnings
Issue Types

Overview

Lint
3warning ObsoleteLintCustomCheck: Obsolete custom lint check
Correctness
1warning ScopedStorage: Affected by scoped storage
Usability:Icons
2warning MonochromeLauncherIcon: Monochrome icon is not defined
Included Additional Checks (91)
Disabled Checks (41)

Obsolete custom lint check

../../../../../gradle/dotgradle-offline/caches/8.10.2/transforms/9fc09e72ca8468c76150ee5bc54afe31/transformed/navigation-common-2.8.1/jars/lint.jar: Library lint checks reference invalid APIs; these checks will be skipped!

Lint found an issue registry (androidx.navigation.common.lint.NavigationCommonIssueRegistry)
which contains some references to invalid API:
com.android.tools.lint.checks.infrastructure.TestFiles: com.android.tools.lint.checks.infrastructure.TestFile bytecode(java.lang.String,com.android.tools.lint.checks.infrastructure.TestFile,long,java.lang.String[])
(Referenced from androidx/navigation/lint/common/LintUtilKt.class)

Therefore, this lint check library is not included
in analysis. This affects the following lint checks:
EmptyNavDeepLink,WrongStartDestinationType

To use this lint check, upgrade to a more recent version
of the library.

../../../../../gradle/dotgradle-offline/caches/8.10.2/transforms/11f4b0dcfc97b65d1b918904f88d870b/transformed/navigation-compose-2.8.1/jars/lint.jar: Library lint checks reference invalid APIs; these checks will be skipped!

Lint found an issue registry (androidx.navigation.compose.lint.NavigationComposeIssueRegistry)
which contains some references to invalid API:
com.android.tools.lint.checks.infrastructure.TestFiles: com.android.tools.lint.checks.infrastructure.TestFile bytecode(java.lang.String,com.android.tools.lint.checks.infrastructure.TestFile,long,java.lang.String[])
(Referenced from androidx/navigation/lint/common/LintUtilKt.class)

Therefore, this lint check library is not included
in analysis. This affects the following lint checks:
ComposableDestinationInComposeScope,ComposableNavGraphInComposeScope,UnrememberedGetBackStackEntry,WrongStartDestinationType

To use this lint check, upgrade to a more recent version
of the library.

../../../../../gradle/dotgradle-offline/caches/8.10.2/transforms/27497fa9b972892d212585d3aea44ddc/transformed/navigation-runtime-2.8.1/jars/lint.jar: Library lint checks reference invalid APIs; these checks will be skipped!

Lint found an issue registry (androidx.navigation.runtime.lint.NavigationRuntimeIssueRegistry)
which contains some references to invalid API:
com.android.tools.lint.checks.infrastructure.TestFiles: com.android.tools.lint.checks.infrastructure.TestFile bytecode(java.lang.String,com.android.tools.lint.checks.infrastructure.TestFile,long,java.lang.String[])
(Referenced from androidx/navigation/lint/common/LintUtilKt.class)

Therefore, this lint check library is not included
in analysis. This affects the following lint checks:
DeepLinkInActivityDestination,WrongStartDestinationType,WrongNavigateRouteType

To use this lint check, upgrade to a more recent version
of the library.

ObsoleteLintCustomCheck Warning Priority 10/10

Affected by scoped storage

../../src/main/AndroidManifest.xml:23: READ_EXTERNAL_STORAGE is deprecated (and is not granted) when targeting Android 13+. If you need to query or interact with MediaStore or media files on the shared storage, you should instead use one or more new storage permissions: READ_MEDIA_IMAGES, READ_MEDIA_VIDEO or READ_MEDIA_AUDIO.
 20     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
 21     <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
 22     <uses-permission android:name="android.permission.INTERNET" />
 23     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />                     
 24     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
 25         tools:ignore="ScopedStorage" />
 26     <uses-permission android:name="android.permission.BLUETOOTH" />
ScopedStorage Correctness Warning Priority 8/10

Monochrome icon is not defined

../../src/main/res/mipmap-anydpi-v26/ic_launcher.xml:6: The application adaptive icon is missing a monochrome tag
 3    - License, v. 2.0. If a copy of the MPL was not distributed with this
 4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 5 
 6 <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">                          
 7     <background android:drawable="@drawable/ic_launcher_background"/>
 8     <foreground android:drawable="@drawable/ic_launcher_foreground"/>
 9 </adaptive-icon>
../../src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:6: The application adaptive roundIcon is missing a monochrome tag
 3    - License, v. 2.0. If a copy of the MPL was not distributed with this
 4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 5 
 6 <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">                          
 7     <background android:drawable="@drawable/ic_launcher_background"/>
 8     <foreground android:drawable="@drawable/ic_launcher_foreground"/>
 9 </adaptive-icon>
MonochromeLauncherIcon Icons Usability Warning Priority 6/10

Included Additional Checks

This card lists all the extra checks run by lint, provided from libraries, build configuration and extra flags. This is included to help you verify whether a particular check is included in analysis when configuring builds. (Note that the list does not include the hundreds of built-in checks into lint, only additional ones.)

Disabled Checks

One or more issues were not run by lint, either because the check is not enabled by default, or because it was disabled with a command line flag or via one or more lint.xml configuration files in the project directories.

Suppressing Warnings and Errors

Lint errors can be suppressed in a variety of ways:

1. With a @SuppressLint annotation in the Java code
2. With a tools:ignore attribute in the XML file
3. With a //noinspection comment in the source code
4. With ignore flags specified in the build.gradle file, as explained below
5. With a lint.xml configuration file in the project
6. With a lint.xml configuration file passed to lint via the --config flag
7. With the --ignore flag passed to lint.

To suppress a lint warning with an annotation, add a @SuppressLint("id") annotation on the class, method or variable declaration closest to the warning instance you want to disable. The id can be one or more issue id's, such as "UnusedResources" or {"UnusedResources","UnusedIds"}, or it can be "all" to suppress all lint warnings in the given scope.

To suppress a lint warning with a comment, add a //noinspection id comment on the line before the statement with the error.

To suppress a lint warning in an XML file, add a tools:ignore="id" attribute on the element containing the error, or one of its surrounding elements. You also need to define the namespace for the tools prefix on the root element in your document, next to the xmlns:android declaration:
xmlns:tools="http://schemas.android.com/tools"

To suppress a lint warning in a build.gradle file, add a section like this:
android {
    lintOptions {
        disable 'TypographyFractions','TypographyQuotes'
    }
}

Here we specify a comma separated list of issue id's after the disable command. You can also use warning or error instead of disable to change the severity of issues.

To suppress lint warnings with a configuration XML file, create a file named lint.xml and place it at the root directory of the module in which it applies.

The format of the lint.xml file is something like the following:
<?xml version="1.0" encoding="UTF-8"?>
<lint>
    <!-- Ignore everything in the test source set -->
    <issue id="all">
        <ignore path="\*/test/\*" />
    </issue>

    <!-- Disable this given check in this project -->
    <issue id="IconMissingDensityFolder" severity="ignore" />

    <!-- Ignore the ObsoleteLayoutParam issue in the given files -->
    <issue id="ObsoleteLayoutParam">
        <ignore path="res/layout/activation.xml" />
        <ignore path="res/layout-xlarge/activation.xml" />
        <ignore regexp="(foo|bar)\.java" />
    </issue>

    <!-- Ignore the UselessLeaf issue in the given file -->
    <issue id="UselessLeaf">
        <ignore path="res/layout/main.xml" />
    </issue>

    <!-- Change the severity of hardcoded strings to "error" -->
    <issue id="HardcodedText" severity="error" />
</lint>

To suppress lint checks from the command line, pass the --ignore flag with a comma separated list of ids to be suppressed, such as:
$ lint --ignore UnusedResources,UselessLeaf /my/project/path

For more information, see https://developer.android.com/studio/write/lint.html#config