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

Here my full gradle.build file source file

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

Leave a Reply

avatar
  Subscribe  
Notify of