[Android] Lint found fatal errors while assembling a release target.

sam3ha2·2020년 6월 30일
0

Error Handling

목록 보기
1/1
post-thumbnail
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
    }
}
...

release 빌드 중 발생한 에러
lintOptions 을 수정하여 error 를 피할 수 있는 방법을 제공해준다.

실제 원인을 파악하기 위해서는
app/build/reports/lint-results-release-fatal.html
파일을 확인해보면 된다.

다양한 이유가 존재하겠지만 필자의 경우

layout이 수정되면서 txt_operating_devices_cnt 항목이 삭제되었는데, 여전히 해당 항목을 참조하고 있어 문제가 발생했다.
해당 라인 삭제하는 것으로 처리.

0개의 댓글