简体   繁体   中英

Error generating signed apk with nothing in lint-results-release-fatal

I've got the same error as in this question, but there's nothing in lint-results-release-fatal.xml (or htlm) as answers suggest. How can it be? 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
    }
}

I also had this problem, prorem was developing in flutter, the solution was to access the build.gradle file and add the following:

    android {
    ...
    buildTypes {
        release {
            minifyEnabled false
        }
    }
    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }

}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM