flutter Execution failed for task ':app:lintVitalRelease'.

After flutter upgrade report is being given a lot of mistakes when the main pack of Android, iOS Jiaoshu, problems can be solved, the implementation of flutter build apkAndroid is given as follows

* What went wrong:                                              
Running Gradle task 'assembleRelease'...                                                         Execution failed for task ':app:lintVitalRelease'.              
Running Gradle task 'assembleRelease'...                                                         > Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
Running Gradle task 'assembleRelease'...                                                            > Could not resolve io.flutter:arm64_v8a_debug:1.0.0-a67792536ca236a971d0efbcfd7af4efb8f6c119.
Running Gradle task 'assembleRelease'...                                                         

As can be seen from the error message is the wrong placeExecution failed for task ':app:lintVitalRelease'

Solution:
In android-> app-> build.gradle add the following code in the path android

    lintOptions {
        disable 'InvalidPackage'
        checkReleaseBuilds false
        abortOnError false
    }

Re-execution flutter build apkcan be packaged properly

Guess you like

Origin www.cnblogs.com/qqcc1388/p/12290659.html