Error lint in android project

1

When I'm going to create and sign the apk I get this error

Lint found fatal errors while assembling a release target.

To proceed, either fix the issues identified by lint, or modify your build script as follows:
...
android {
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
}

What is the solution? ...

    
asked by pauuu 14.10.2018 в 01:03
source

1 answer

1

I understand what you are saying, your project works perfectly but when you try to sign it is when this problem arises.

What happens is that the options of Lint detected "errors" or "warnings" that escape the usual syntactic analysis performed by the compiler.

If when uploading your application directly to your device you do not have any problems, as an option, you should actually add what the message specifies within your file /app/build.gradle , within android add the block lintOptions with the following configuration:

android {
    ...
    ...
    lintOptions {
        checkReleaseBuilds false
        disable 'MissingTranslation'
        abortOnError false
    }
}
    
answered by 15.10.2018 в 17:48