Lint Report: 98 warnings
Issue Types

Overview

Correctness
7warning GradleDependency: Obsolete Gradle Dependency
1warning GradleDynamicVersion: Gradle Dynamic Version
Security
1warning AllowBackup: AllowBackup/FullBackupContent Problems
Performance
1warning AnnotationProcessorOnCompilePath: Annotation Processor on Compile Classpath
4warning ObsoleteSdkInt: Obsolete SDK_INT Version Check
1warning Overdraw: Overdraw: Painting regions more than once
78warning UnusedResources: Unused resources
Usability:Icons
1warning IconMissingDensityFolder: Missing density folder
Productivity
2warning KtxExtensionAvailable: KTX Extension Available
Accessibility
1warning ContentDescription: Image without contentDescription
Internationalization
3warning HardcodedText: Hardcoded text
Disabled Checks (37)

Obsolete Gradle Dependency

../../build.gradle:33: A newer version of androidx.appcompat:appcompat than 1.0.0 is available: 1.2.0
 30 }
 31 
 32 dependencies {
 33     implementation 'androidx.appcompat:appcompat:1.0.0'                                             
 34     implementation 'com.google.android.material:material:1.0.0'
 35     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 36     implementation 'androidx.navigation:navigation-fragment:2.0.0-rc02'
../../build.gradle:34: A newer version of com.google.android.material:material than 1.0.0 is available: 1.3.0
 31 
 32 dependencies {
 33     implementation 'androidx.appcompat:appcompat:1.0.0'
 34     implementation 'com.google.android.material:material:1.0.0'                                     
 35     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 36     implementation 'androidx.navigation:navigation-fragment:2.0.0-rc02'
 37     implementation 'androidx.navigation:navigation-ui:2.0.0-rc02'
../../build.gradle:35: A newer version of androidx.constraintlayout:constraintlayout than 1.1.3 is available: 2.0.4
 32 dependencies {
 33     implementation 'androidx.appcompat:appcompat:1.0.0'
 34     implementation 'com.google.android.material:material:1.0.0'
 35     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'                               
 36     implementation 'androidx.navigation:navigation-fragment:2.0.0-rc02'
 37     implementation 'androidx.navigation:navigation-ui:2.0.0-rc02'
 38     androidTestImplementation 'androidx.test.ext:junit:1.1.1'
../../build.gradle:36: A newer version of androidx.navigation:navigation-fragment than 2.0.0-rc02 is available: 2.3.5
 33     implementation 'androidx.appcompat:appcompat:1.0.0'
 34     implementation 'com.google.android.material:material:1.0.0'
 35     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 36     implementation 'androidx.navigation:navigation-fragment:2.0.0-rc02'                             
 37     implementation 'androidx.navigation:navigation-ui:2.0.0-rc02'
 38     androidTestImplementation 'androidx.test.ext:junit:1.1.1'
 39     androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
../../build.gradle:37: A newer version of androidx.navigation:navigation-ui than 2.0.0-rc02 is available: 2.3.5
 34     implementation 'com.google.android.material:material:1.0.0'
 35     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 36     implementation 'androidx.navigation:navigation-fragment:2.0.0-rc02'
 37     implementation 'androidx.navigation:navigation-ui:2.0.0-rc02'                                   
 38     androidTestImplementation 'androidx.test.ext:junit:1.1.1'
 39     androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
 40     compileOnly 'org.projectlombok:lombok:1.18.20'
../../build.gradle:38: A newer version of androidx.test.ext:junit than 1.1.1 is available: 1.1.2
 35     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 36     implementation 'androidx.navigation:navigation-fragment:2.0.0-rc02'
 37     implementation 'androidx.navigation:navigation-ui:2.0.0-rc02'
 38     androidTestImplementation 'androidx.test.ext:junit:1.1.1'                                       
 39     androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
 40     compileOnly 'org.projectlombok:lombok:1.18.20'
 41     annotationProcessor 'org.projectlombok:lombok:1.18.20'
../../build.gradle:39: A newer version of androidx.test.espresso:espresso-core than 3.1.0 is available: 3.3.0
 36     implementation 'androidx.navigation:navigation-fragment:2.0.0-rc02'
 37     implementation 'androidx.navigation:navigation-ui:2.0.0-rc02'
 38     androidTestImplementation 'androidx.test.ext:junit:1.1.1'
 39     androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'                          
 40     compileOnly 'org.projectlombok:lombok:1.18.20'
 41     annotationProcessor 'org.projectlombok:lombok:1.18.20'
 42     implementation "androidx.core:core-ktx:+"
GradleDependency Correctness Warning Priority 4/10

Gradle Dynamic Version

../../build.gradle:42: Avoid using + in version numbers; can lead to unpredictable and unrepeatable builds (androidx.core:core-ktx:+)
 39     androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
 40     compileOnly 'org.projectlombok:lombok:1.18.20'
 41     annotationProcessor 'org.projectlombok:lombok:1.18.20'
 42     implementation "androidx.core:core-ktx:+"                                                       
 43     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
 44 }
 45 repositories {
GradleDynamicVersion Correctness Warning Priority 4/10

AllowBackup/FullBackupContent Problems

../../src/main/AndroidManifest.xml:10: On SDK version 23 and up, your app data will be automatically backed up and restored on app install. Consider adding the attribute android:fullBackupContent to specify an @xml resource which configures which files to backup. More info: https://developer.android.com/training/backup/autosyncapi.html
  7          ACCESS_COARSE_LOCATION instead. -->
  8     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  9 
 10     <application                                                                                    
 11         android:allowBackup="true"
 12         android:icon="@mipmap/ic_launcher"
 13         android:label="@string/app_name"
AllowBackup Security Warning Priority 3/10

Annotation Processor on Compile Classpath

../../build.gradle:40: Add annotation processor to processor path using annotationProcessor instead of compileOnly
 37     implementation 'androidx.navigation:navigation-ui:2.0.0-rc02'
 38     androidTestImplementation 'androidx.test.ext:junit:1.1.1'
 39     androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
 40     compileOnly 'org.projectlombok:lombok:1.18.20'                                                  
 41     annotationProcessor 'org.projectlombok:lombok:1.18.20'
 42     implementation "androidx.core:core-ktx:+"
 43     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
AnnotationProcessorOnCompilePath Performance Warning Priority 8/10

Obsolete SDK_INT Version Check

../../src/main/res/drawable-v21: This folder configuration (v21) is unnecessary; minSdkVersion is 26. Merge all the resources in this folder into drawable.
../../src/main/res/drawable-v24: This folder configuration (v24) is unnecessary; minSdkVersion is 26. Merge all the resources in this folder into drawable.
../../src/main/res/mipmap-anydpi-v26: This folder configuration (v26) is unnecessary; minSdkVersion is 26. Merge all the resources in this folder into mipmap-anydpi.
../../src/main/res/values-v23: This folder configuration (v23) is unnecessary; minSdkVersion is 26. Merge all the resources in this folder into values.
ObsoleteSdkInt Performance Warning Priority 6/10

Overdraw: Painting regions more than once

../../src/main/res/layout/chat_fragment.xml:5: Possible overdraw: Root element paints background @color/white with a theme that also paints a background (inferred theme is @style/Theme.BlueChatRoom2)
  2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3     android:layout_width="match_parent"
  4     android:layout_height="match_parent"
  5     android:background="@color/white"                                                               
  6     android:focusableInTouchMode="true"
  7     android:clickable="true"
  8     android:focusable="true"
Overdraw Performance Warning Priority 3/10

Unused resources

../../src/main/res/drawable/button_background.xml:2: The resource R.drawable.button_background appears to be unused
 1 <?xml version="1.0" encoding="utf-8"?>
 2 <shape xmlns:android="http://schemas.android.com/apk/res/android"                                   
 3     android:shape="rectangle">
 4     <solid android:color="@android:color/transparent"/>
 5     <corners android:radius="35dp" />
../../src/main/res/layout/chat_fragment.xml:2: The resource R.layout.chat_fragment appears to be unused
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"                          
  3     android:layout_width="match_parent"
  4     android:layout_height="match_parent"
  5     android:background="@color/white"
../../src/main/res/drawable/circular_background.xml:2: The resource R.drawable.circular_background appears to be unused
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <shape                                                                                              
  3     xmlns:android="http://schemas.android.com/apk/res/android"
  4     android:shape="oval">
../../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="colorPrimary">#AEDBFF</color>
 10     <color name="colorPrimaryDark">#AEDBFF</color>
../../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="colorPrimary">#AEDBFF</color>
 10     <color name="colorPrimaryDark">#AEDBFF</color>
 11     <color name="colorAccent">#673AB7</color>
UnusedResources Performance Warning Priority 3/10

Missing density folder

../../src/main/res: Missing density variation folders in src/main/res: drawable-hdpi, drawable-mdpi
IconMissingDensityFolder Icons Usability Warning Priority 3/10

KTX Extension Available

../../build.gradle:36: Add suffix -ktx to enable the Kotlin extensions for this library
 33     implementation 'androidx.appcompat:appcompat:1.0.0'
 34     implementation 'com.google.android.material:material:1.0.0'
 35     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 36     implementation 'androidx.navigation:navigation-fragment:2.0.0-rc02'                             
 37     implementation 'androidx.navigation:navigation-ui:2.0.0-rc02'
 38     androidTestImplementation 'androidx.test.ext:junit:1.1.1'
 39     androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
../../build.gradle:37: Add suffix -ktx to enable the Kotlin extensions for this library
 34     implementation 'com.google.android.material:material:1.0.0'
 35     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 36     implementation 'androidx.navigation:navigation-fragment:2.0.0-rc02'
 37     implementation 'androidx.navigation:navigation-ui:2.0.0-rc02'                                   
 38     androidTestImplementation 'androidx.test.ext:junit:1.1.1'
 39     androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
 40     compileOnly 'org.projectlombok:lombok:1.18.20'
KtxExtensionAvailable Productivity Information Priority 4/10

Image without contentDescription

../../src/main/res/layout/chat_fragment.xml:64: Empty contentDescription attribute on image
 61                 android:layout_width="32dp"
 62                 android:layout_height="32dp"
 63                 android:layout_gravity="center"
 64                 android:contentDescription="TODO"                                                   
 65                 android:src="@drawable/ic_send_depri" />
 66 
 67         </FrameLayout>
ContentDescription Accessibility Warning Priority 3/10

Hardcoded text

../../src/main/res/layout/chat_fragment.xml:40: Hardcoded string "Escreva algo...", should use @string resource
 37                 android:layout_marginEnd="60dp"
 38                 android:layout_weight="5"
 39                 android:background="#00FFFFFF"
 40                 android:hint="Escreva algo..."                                                      
 41                 android:inputType="textLongMessage"
 42                 android:textColorHint="#BDBDBD"
 43                 android:textSize="15sp"
../../src/main/res/layout/chat_fragment.xml:64: Hardcoded string "TODO", should use @string resource
 61                 android:layout_width="32dp"
 62                 android:layout_height="32dp"
 63                 android:layout_gravity="center"
 64                 android:contentDescription="TODO"                                                   
 65                 android:src="@drawable/ic_send_depri" />
 66 
 67         </FrameLayout>
../../src/main/res/layout/fragment_first.xml:13: Hardcoded string " ", should use @string resource
 10         android:id="@+id/textview_first"
 11         android:layout_width="wrap_content"
 12         android:layout_height="wrap_content"
 13         android:text=" "                                                                            
 14         app:layout_constraintBottom_toTopOf="@id/button_first"
 15         app:layout_constraintEnd_toEndOf="parent"
 16         app:layout_constraintStart_toStartOf="parent"
HardcodedText Internationalization Warning Priority 5/10

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