Lint Report: 48 errors and 16 warnings
Issue Types

Overview

Correctness
48error NewApi: Calling new methods on older versions
1warning OldTargetApi: Target SDK attribute is not targeting latest version
1warning AndroidGradlePluginVersion: Obsolete Android Gradle Plugin Version
6warning GradleDependency: Obsolete Gradle Dependency
Performance
8warning UnusedResources: Unused resources
Included Additional Checks (81)
Disabled Checks (43)

Calling new methods on older versions

../../src/main/java/com/carlosjimz87/maestrotestingdemo/data/SampleData.kt:7: Call requires API level 26, or core library desugaring (current min is 24): java.time.LocalDate#now
  4 
  5 object SampleData {
  6     fun getTasks(): List<Task> = listOf(
  7         Task("1", "Review pull requests", "Check open PRs on the main repo and provide feedback", Priority.HIGH, false, LocalDate.now().plusDays(1), Category.WORK),
  8         Task("2", "Buy groceries", "Milk, eggs, bread, fruits, vegetables", Priority.MEDIUM, false, LocalDate.now(), Category.SHOPPING),
  9         Task("3", "Morning run", "5km run in the park", Priority.LOW, true, LocalDate.now(), Category.HEALTH),
 10         Task("4", "Prepare presentation", "Create slides for the Maestro testing demo", Priority.HIGH, false, LocalDate.now().plusDays(3), Category.WORK),
../../src/main/java/com/carlosjimz87/maestrotestingdemo/data/SampleData.kt:7: Call requires API level 26, or core library desugaring (current min is 24): java.time.LocalDate#plusDays
  4 
  5 object SampleData {
  6     fun getTasks(): List<Task> = listOf(
  7         Task("1", "Review pull requests", "Check open PRs on the main repo and provide feedback", Priority.HIGH, false, LocalDate.now().plusDays(1), Category.WORK),
  8         Task("2", "Buy groceries", "Milk, eggs, bread, fruits, vegetables", Priority.MEDIUM, false, LocalDate.now(), Category.SHOPPING),
  9         Task("3", "Morning run", "5km run in the park", Priority.LOW, true, LocalDate.now(), Category.HEALTH),
 10         Task("4", "Prepare presentation", "Create slides for the Maestro testing demo", Priority.HIGH, false, LocalDate.now().plusDays(3), Category.WORK),
../../src/main/java/com/carlosjimz87/maestrotestingdemo/data/SampleData.kt:8: Call requires API level 26, or core library desugaring (current min is 24): java.time.LocalDate#now
  5 object SampleData {
  6     fun getTasks(): List<Task> = listOf(
  7         Task("1", "Review pull requests", "Check open PRs on the main repo and provide feedback", Priority.HIGH, false, LocalDate.now().plusDays(1), Category.WORK),
  8         Task("2", "Buy groceries", "Milk, eggs, bread, fruits, vegetables", Priority.MEDIUM, false, LocalDate.now(), Category.SHOPPING),
  9         Task("3", "Morning run", "5km run in the park", Priority.LOW, true, LocalDate.now(), Category.HEALTH),
 10         Task("4", "Prepare presentation", "Create slides for the Maestro testing demo", Priority.HIGH, false, LocalDate.now().plusDays(3), Category.WORK),
 11         Task("5", "Call dentist", "Schedule annual checkup appointment", Priority.MEDIUM, false, LocalDate.now().plusDays(7), Category.HEALTH),
../../src/main/java/com/carlosjimz87/maestrotestingdemo/data/SampleData.kt:9: Call requires API level 26, or core library desugaring (current min is 24): java.time.LocalDate#now
  6   fun getTasks(): List<Task> = listOf(
  7       Task("1", "Review pull requests", "Check open PRs on the main repo and provide feedback", Priority.HIGH, false, LocalDate.now().plusDays(1), Category.WORK),
  8       Task("2", "Buy groceries", "Milk, eggs, bread, fruits, vegetables", Priority.MEDIUM, false, LocalDate.now(), Category.SHOPPING),
  9       Task("3", "Morning run", "5km run in the park", Priority.LOW, true, LocalDate.now(), Category.HEALTH),
 10       Task("4", "Prepare presentation", "Create slides for the Maestro testing demo", Priority.HIGH, false, LocalDate.now().plusDays(3), Category.WORK),
 11       Task("5", "Call dentist", "Schedule annual checkup appointment", Priority.MEDIUM, false, LocalDate.now().plusDays(7), Category.HEALTH),
 12       Task("6", "Update dependencies", "Upgrade Kotlin and Compose to latest versions", Priority.HIGH, false, LocalDate.now().plusDays(2), Category.WORK),
../../src/main/java/com/carlosjimz87/maestrotestingdemo/data/SampleData.kt:10: Call requires API level 26, or core library desugaring (current min is 24): java.time.LocalDate#now
  7   Task("1", "Review pull requests", "Check open PRs on the main repo and provide feedback", Priority.HIGH, false, LocalDate.now().plusDays(1), Category.WORK),
  8   Task("2", "Buy groceries", "Milk, eggs, bread, fruits, vegetables", Priority.MEDIUM, false, LocalDate.now(), Category.SHOPPING),
  9   Task("3", "Morning run", "5km run in the park", Priority.LOW, true, LocalDate.now(), Category.HEALTH),
 10   Task("4", "Prepare presentation", "Create slides for the Maestro testing demo", Priority.HIGH, false, LocalDate.now().plusDays(3), Category.WORK),
 11   Task("5", "Call dentist", "Schedule annual checkup appointment", Priority.MEDIUM, false, LocalDate.now().plusDays(7), Category.HEALTH),
 12   Task("6", "Update dependencies", "Upgrade Kotlin and Compose to latest versions", Priority.HIGH, false, LocalDate.now().plusDays(2), Category.WORK),
 13   Task("7", "Read Kotlin coroutines book", "Chapter 5-7 on structured concurrency", Priority.LOW, false, LocalDate.now().plusDays(14), Category.PERSONAL),
NewApi Correctness Error Priority 6/10

Target SDK attribute is not targeting latest version

../../build.gradle.kts:13: Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.
 10     defaultConfig {
 11         applicationId = "com.carlosjimz87.maestrotestingdemo"
 12         minSdk = 24
 13         targetSdk = 35                                                                              
 14         versionCode = 1
 15         versionName = "1.0"
OldTargetApi Correctness Warning Priority 6/10

Obsolete Android Gradle Plugin Version

../../../gradle/wrapper/gradle-wrapper.properties:4: A newer version of Gradle than 9.3.1 is available: 9.4.1
 1 #Wed Jan 29 16:22:39 CET 2025
 2 distributionBase=GRADLE_USER_HOME
 3 distributionPath=wrapper/dists
 4 distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip                     
 5 zipStoreBase=GRADLE_USER_HOME
 6 zipStorePath=wrapper/dists
AndroidGradlePluginVersion Correctness Warning Priority 4/10

Obsolete Gradle Dependency

../../../gradle/libs.versions.toml:4: A newer version of androidx.core:core-ktx than 1.16.0 is available: 1.18.0
  1 [versions]
  2 agp = "9.1.0"
  3 kotlin = "2.3.20"
  4 coreKtx = "1.16.0"                                                                                  
  5 junit = "4.13.2"
  6 junitVersion = "1.2.1"
  7 espressoCore = "3.6.1"
../../../gradle/libs.versions.toml:6: A newer version of androidx.test.ext:junit than 1.2.1 is available: 1.3.0
  3 kotlin = "2.3.20"
  4 coreKtx = "1.16.0"
  5 junit = "4.13.2"
  6 junitVersion = "1.2.1"                                                                              
  7 espressoCore = "3.6.1"
  8 lifecycleRuntimeKtx = "2.10.0"
  9 activityCompose = "1.12.4"
../../../gradle/libs.versions.toml:7: A newer version of androidx.test.espresso:espresso-core than 3.6.1 is available: 3.7.0
  4 coreKtx = "1.16.0"
  5 junit = "4.13.2"
  6 junitVersion = "1.2.1"
  7 espressoCore = "3.6.1"                                                                              
  8 lifecycleRuntimeKtx = "2.10.0"
  9 activityCompose = "1.12.4"
 10 composeBom = "2026.03.00"
../../../gradle/libs.versions.toml:9: A newer version of androidx.activity:activity-compose than 1.12.4 is available: 1.13.0
  6 junitVersion = "1.2.1"
  7 espressoCore = "3.6.1"
  8 lifecycleRuntimeKtx = "2.10.0"
  9 activityCompose = "1.12.4"                                                                          
 10 composeBom = "2026.03.00"
 11 navigationCompose = "2.9.0"
 12 lifecycleViewmodelCompose = "2.10.0"
../../../gradle/libs.versions.toml:10: A newer version of androidx.compose:compose-bom than 2026.03.00 is available: 2026.03.01
  7 espressoCore = "3.6.1"
  8 lifecycleRuntimeKtx = "2.10.0"
  9 activityCompose = "1.12.4"
 10 composeBom = "2026.03.00"                                                                           
 11 navigationCompose = "2.9.0"
 12 lifecycleViewmodelCompose = "2.10.0"
../../../gradle/libs.versions.toml:11: A newer version of androidx.navigation:navigation-compose than 2.9.0 is available: 2.9.7
  8 lifecycleRuntimeKtx = "2.10.0"
  9 activityCompose = "1.12.4"
 10 composeBom = "2026.03.00"
 11 navigationCompose = "2.9.0"                                                                         
 12 lifecycleViewmodelCompose = "2.10.0"
 13 
 14 [libraries]
GradleDependency Correctness Warning Priority 4/10

Unused resources

../../src/main/res/values/colors.xml:3: The resource R.color.purple_200 appears to be unused
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <resources>
  3     <color name="purple_200">#FFBB86FC</color>                                                      
  4     <color name="purple_500">#FF6200EE</color>
  5     <color name="purple_700">#FF3700B3</color>
  6     <color name="teal_200">#FF03DAC5</color>
../../src/main/res/values/colors.xml:4: The resource R.color.purple_500 appears to be unused
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <resources>
  3     <color name="purple_200">#FFBB86FC</color>
  4     <color name="purple_500">#FF6200EE</color>                                                      
  5     <color name="purple_700">#FF3700B3</color>
  6     <color name="teal_200">#FF03DAC5</color>
  7     <color name="teal_700">#FF018786</color>
../../src/main/res/values/colors.xml:5: The resource R.color.purple_700 appears to be unused
  2 <resources>
  3     <color name="purple_200">#FFBB86FC</color>
  4     <color name="purple_500">#FF6200EE</color>
  5     <color name="purple_700">#FF3700B3</color>                                                      
  6     <color name="teal_200">#FF03DAC5</color>
  7     <color name="teal_700">#FF018786</color>
  8     <color name="black">#FF000000</color>
../../src/main/res/values/colors.xml:6: The resource R.color.teal_200 appears to be unused
  3     <color name="purple_200">#FFBB86FC</color>
  4     <color name="purple_500">#FF6200EE</color>
  5     <color name="purple_700">#FF3700B3</color>
  6     <color name="teal_200">#FF03DAC5</color>                                                        
  7     <color name="teal_700">#FF018786</color>
  8     <color name="black">#FF000000</color>
  9     <color name="white">#FFFFFFFF</color>
../../src/main/res/values/colors.xml:7: The resource R.color.teal_700 appears to be unused
  4     <color name="purple_500">#FF6200EE</color>
  5     <color name="purple_700">#FF3700B3</color>
  6     <color name="teal_200">#FF03DAC5</color>
  7     <color name="teal_700">#FF018786</color>                                                        
  8     <color name="black">#FF000000</color>
  9     <color name="white">#FFFFFFFF</color>
 10 </resources>
../../src/main/res/values/colors.xml:8: The resource R.color.black appears to be unused
  5     <color name="purple_700">#FF3700B3</color>
  6     <color name="teal_200">#FF03DAC5</color>
  7     <color name="teal_700">#FF018786</color>
  8     <color name="black">#FF000000</color>                                                           
  9     <color name="white">#FFFFFFFF</color>
 10 </resources>
../../src/main/res/values/colors.xml:9: The resource R.color.white appears to be unused
  6     <color name="teal_200">#FF03DAC5</color>
  7     <color name="teal_700">#FF018786</color>
  8     <color name="black">#FF000000</color>
  9     <color name="white">#FFFFFFFF</color>                                                           
 10 </resources>
../../src/main/res/drawable/ic_launcher_background.xml:2: The resource R.drawable.ic_launcher_background appears to be unused
   1 <?xml version="1.0" encoding="utf-8"?>
   2 <vector xmlns:android="http://schemas.android.com/apk/res/android"                                  
   3     android:width="108dp"
   4     android:height="108dp"
   5     android:viewportWidth="108"
UnusedResources Performance Warning Priority 3/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