Last Update November 3, 2020: We improved the overall article.

In this article i will describe Version control configuration with Gradle Build Project . when you lunce your apps ready to lunce for user you will need genaret signed .apk file with apps version details . if you are not proper configure your apps version setting than google play store are not allow your apps in google store . so we need to correctly setting up version configure . in gradle build project have an easy way to do this in your apps .  For Example com.my.example1.1.0.apk

Gradle Version Seting Up : 
First open your existing project in android studio >

Create version.properties  file in your root project. See flowing image

configuration

Now Open version.properties File  and insert flowing line to add

VERSION_CODE=14

Than Open gradle.build file add the flowing code insert the android{ insert here }

Now we need  signing Configuration   add flowing line here . Tips : please type code manually by using your hand not copy and past  than understand properly.
Now Need Setting Up Buildtype add flowing line here

Advertisment

Here my full gradle.build file source file

Congratulations! You have done ! now Run You Apps See the signed .apk file with version .

Advertisement
Previous articleHow to set up Genymotion : Fast, Easy Android Emulator
Next articleHow To Build Signed Android App To Publishe on Appstore
Abdullah Al Mahamud has always been fascinated by the world and is a writer because he wants to share her love of travel with others. He has written for thedevline since 2016, specializing in modern real-life writing about fashion, arts & culture, technology tips, and more! When not writing articles for us at The dev line (which doesn't happen often!), he enjoys exploring both scenic beauty around the globe as well as intellectual topics that help other people become happier. like productivity hacks or ways to save on your grocery bill.