Wednesday 25 October 2017

google play - How to change Android version and code version number?

itemprop="text">

How to change Android version and code
version number Android Studio? I want to change apk file (app) on Google Play and I need
to change Android version and code version number. I tried with this in
AndroidManifest.xml file in Android
Studio:



            xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bestsoftcorporation.circle.app"

android:versionCode="101"
android:versionName="2.0">


But
it does not work. When I tried to publish it on Google Play it display that I must to
change Android version name and code.


class="post-text" itemprop="text">
class="normal">Answer



Go in the
build.gradle and set the version code and name inside the
defaultConfig
element



defaultConfig {

minSdkVersion 9

targetSdkVersion 19
versionCode
1
versionName
"1.0"
}


src="https://i.stack.imgur.com/3bFFB.png" alt="screenshot">



No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...