# Set app version Ionic 3

**URL:** <https://forum.ionicframework.com/t/set-app-version-ionic-3/138790>\
**Category:** ionic-v3\
**Created:** [August 17, 2018, 4:09pm UTC](https://forum.ionicframework.com/t/set-app-version-ionic-3/138790 "2018-08-17T16:09:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![obinnae](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@obinnae](https://forum.ionicframework.com/u/obinnae)\
**Post date:** [August 17, 2018, 4:09pm UTC](https://forum.ionicframework.com/t/set-app-version-ionic-3/138790/1 "2018-08-17T16:09:38Z")

</div>

Everytime I set the app’s version number in config.xml and save, then build the app, it reverts to the previous version number. I have the following…

> \<widget id=“com.ionic.theapp” version=“0.5.4” …

When I set it to 0.5.5 and save, then rebuild the app, it reverts to 0.5.4. Any idea why, or what I’m doing wrong? Is there somewhere else I should be updating the version number?

Thanks.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [August 17, 2018, 9:30pm UTC](https://forum.ionicframework.com/t/set-app-version-ionic-3/138790/2 "2018-08-17T21:30:26Z")

</div>

What file are you changing?  
You should be changing it in `config.xml` in your project root directory.

---

<div class="post-metadata">

**Author:** ![obinnae](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@obinnae](https://forum.ionicframework.com/u/obinnae)\
**Post date:** [August 17, 2018, 9:45pm UTC](https://forum.ionicframework.com/t/set-app-version-ionic-3/138790/3 "2018-08-17T21:45:38Z")

</div>

I do change it in config.xml in the root directory, but it keeps reverting back to the previous version. It’s only after 3 or 4 builds and updates does it finally stick. It’s kind of annoying.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [August 17, 2018, 10:16pm UTC](https://forum.ionicframework.com/t/set-app-version-ionic-3/138790/4 "2018-08-17T22:16:49Z")

</div>

So your `config.xml` changes back to its previous content?

---

<div class="post-metadata">

**Author:** ![obinnae](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@obinnae](https://forum.ionicframework.com/u/obinnae)\
**Post date:** [August 17, 2018, 11:20pm UTC](https://forum.ionicframework.com/t/set-app-version-ionic-3/138790/5 "2018-08-17T23:20:57Z")

</div>

Sorry, not the whole file, just the version number attribute in the `<widget>` tag

> \<widget id=“com.ionic.theapp” version=“ **0.5.4** ” …

When I change it to **0.5.5** , save, then rebuild, it reverts back to **0.5.4**. I change it back to 0.5.5, save, rebuild, same thing. This happens 3 or 4 times then it finally sticks to 0.5.5.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [August 18, 2018, 12:21am UTC](https://forum.ionicframework.com/t/set-app-version-ionic-3/138790/6 "2018-08-18T00:21:00Z")

</div>

What commands are you using to build?

---

<div class="post-metadata">

**Author:** ![obinnae](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@obinnae](https://forum.ionicframework.com/u/obinnae)\
**Post date:** [August 28, 2018, 2:01am UTC](https://forum.ionicframework.com/t/set-app-version-ionic-3/138790/7 "2018-08-28T02:01:10Z")

</div>

It’s livereload (not fresh rebuild), so after saving the change, the app rebuilds. To run initially, I run

> ionic cordova run android -lc

---

<div class="post-metadata">

**Author:** ![Calll](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@Calll](https://forum.ionicframework.com/u/Calll)\
**Post date:** [September 18, 2019, 10:46pm UTC](https://forum.ionicframework.com/t/set-app-version-ionic-3/138790/8 "2019-09-18T22:46:56Z")

</div>

I’m not sure if that actually “builds” the app.

You have to change the version and then run:

```auto
ionic cordova build android

```

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:23pm UTC](https://forum.ionicframework.com/t/set-app-version-ionic-3/138790/9 "2021-07-19T21:23:05Z")

</div>

Closed on July 19, 2021, 9:23pm UTC


