Praveen Prasad Praveen Prasad - 10 months ago 115
Android Question

How to update version number of react native app

I am using React native with Android. How can I update version number in the app? As I am getting this error.

I am generating file as per this url

I have tried modifying AndroidManifest.xml file, but after I build it, that file gets automatically modified back.

<manifest xmlns:android=""
android:versionName="1.0" >

Here, I modified the XML:

<manifest xmlns:android=""
android:versionName="1.1" >

After, build file automatically changes back.

enter image description here


You should be changing your versionCode and versionName in android/app/build.gradle:

android {

    defaultConfig {

        versionCode 1
        versionName "1.0"