Skip to content Skip to sidebar Skip to footer

Unable To Build Apk In Flutter

I am running flutter build apk --obfuscate --split-debug-info=./build/info to build android apk How can I fix the following error? Running 'flutter pub get' in myapp... 1.0s You a

Solution 1:

Try this modification in your build.gradle(app level)

lintOptions {
     // Code...
     checkReleaseBuilds false// Added the above line so that 'flutter build apk' could work
}

See this issue on Github

https://github.com/flutter/flutter/issues/58247

My solution is based on this comment (This one worked for me) https://github.com/flutter/flutter/issues/58247#issuecomment-636253593

This comment provides some depth on the issuehttps://github.com/flutter/flutter/issues/58247#issuecomment-636500680

Post a Comment for "Unable To Build Apk In Flutter"