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 apk
Android 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 apk
can be packaged properly