uses unchecked or unsafe Operations

Asked

Viewed 176 times

0

I am developing an application in Android Studio with Firebase that is presenting the following error

uses unchecked or unsafe operations

C:\Users\Computador\Desktop\Minhapap\app\src\main\java\com\example\gonca\minhapap\Profile.java:
uses unchecked or unsafe operations.
Recompile with -Xlint:unchecked for details.

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.google.firebase:firebase-core:16.0.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.google.firebase:firebase-auth:16.0.1'

    implementation "com.google.android.gms:play-services-gcm:10.2.1"
    implementation 'com.github.bumptech.glide:glide:4.9.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'

    implementation 'com.google.firebase:firebase-storage:16.0.1'
    implementation 'com.google.firebase:firebase-auth:16.0.1'
}
apply plugin: 'com.google.gms.google-services'

1 answer

0

Within the build.Radle

allprojects {
    gradle.projectsEvaluated {
        tasks.withType(JavaCompile) {
            options.compilerArgs << "-Xlint:unchecked"
        }
    }
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.