{"id":12280,"date":"2025-05-09T06:08:43","date_gmt":"2025-05-09T06:08:43","guid":{"rendered":"https:\/\/www.bacancytechnology.com\/qanda\/?p=12280"},"modified":"2025-05-15T11:59:53","modified_gmt":"2025-05-15T11:59:53","slug":"set-build-and-version-number-in-flutter-app","status":"publish","type":"post","link":"https:\/\/www.bacancytechnology.com\/qanda\/flutter\/set-build-and-version-number-in-flutter-app","title":{"rendered":"How to Set Build and Version Number of Flutter Application"},"content":{"rendered":"<p><strong>There are two ways to set build version.<\/strong><\/p>\n<ul>\n<li>From pubspec.yaml file (Flutter Side)<\/li>\n<li>From build.gradle and info.plist files(Native Side)<\/li>\n<\/ul>\n<div class=\"qanda-read-box\"><div class=\"bg-light read-more-icon\"><img decoding=\"async\" src=\"https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/04\/24061434\/read-txt.png\" alt=\"Also Read\"><p><\/p><h3>Also Read:<\/h3><a href=\"https:\/\/www.bacancytechnology.com\/blog\/flutter-open-source-projects\" target=\"_blank\">Flutter Open Source Projects<\/a><\/div><\/div>\n<h3>1. From pubspec.yaml file<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/05\/09060242\/unnamed-1.png\" alt=\"version\" width=\"197\" height=\"30\" class=\"alignright size-full wp-image-12282\" \/><\/p>\n<ul>\n<li>The version name is 1.0.14 and version code is 14.<\/li>\n<li>You can set any version name and code.<\/li>\n<li>Using this, we don\u2019t need to specify build number natively.<\/li>\n<\/ul>\n<h3>2. From build.gradle and info.plist files(Native Side)<\/h3>\n<p> &#8211; Open app level build.gradle file and set version name and code inside default config.<br \/>\n<img decoding=\"async\" src=\"https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/05\/09060555\/unnamed-1-1.png\" alt=\"level-build\" width=\"520\" height=\"232\" class=\"alignright size-full wp-image-12283\" srcset=\"https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/05\/09060555\/unnamed-1-1.png 520w, https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/05\/09060555\/unnamed-1-1-300x134.png 300w\" sizes=\"(max-width: 520px) 100vw, 520px\" \/><\/p>\n<p>&#8211; Open info.plist file and update below-mentioned tags.<br \/>\n<img decoding=\"async\" src=\"https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/05\/09060710\/unnamed-2.png\" alt=\"info-plist\" width=\"447\" height=\"121\" class=\"alignright size-full wp-image-12284\" srcset=\"https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/05\/09060710\/unnamed-2.png 447w, https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/05\/09060710\/unnamed-2-300x81.png 300w\" sizes=\"(max-width: 447px) 100vw, 447px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are two ways to set build version. From pubspec.yaml file (Flutter Side) From build.gradle and info.plist files(Native Side) 1. From pubspec.yaml file The version name is 1.0.14 and version code is 14. You can set any version name and code. Using this, we don\u2019t need to specify build number natively. 2. From build.gradle and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":12281,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-12280","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-flutter"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/12280"}],"collection":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/comments?post=12280"}],"version-history":[{"count":3,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/12280\/revisions"}],"predecessor-version":[{"id":12369,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/12280\/revisions\/12369"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media\/12281"}],"wp:attachment":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media?parent=12280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/categories?post=12280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/tags?post=12280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}