# Android build won't respect android-versionCode=X

**URL:** <https://forum.ionicframework.com/t/android-build-wont-respect-android-versioncode-x/92771>\
**Category:** ionic-v3\
**Created:** [June 2, 2017, 9:08am UTC](https://forum.ionicframework.com/t/android-build-wont-respect-android-versioncode-x/92771 "2017-06-02T09:08:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![christianpugliese](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/christianpugliese/32/77115_2.png) [@christianpugliese](https://forum.ionicframework.com/u/christianpugliese)\
**Post date:** [June 2, 2017, 9:08am UTC](https://forum.ionicframework.com/t/android-build-wont-respect-android-versioncode-x/92771/1 "2017-06-02T09:08:15Z")

</div>

ionic build android, does not respect the version set on config.xml  
`<widget android-versionCode="8"`

It uses the version set at:  
`Android Studio > Project Structure > Flavors > Version Code`

everytime I need to publish a new apk I have to first open Android Studio, change version code, save and then go back to ionic build…

any thoughts on how to fix this?
