# Understanding Appflow

**URL:** <https://forum.ionicframework.com/t/understanding-appflow/205992>\
**Category:** Appflow\
**Created:** [March 5, 2021, 9:20pm UTC](https://forum.ionicframework.com/t/understanding-appflow/205992 "2021-03-05T21:20:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlodeprojuicer](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dlodeprojuicer/32/132092_2.png) [@dlodeprojuicer](https://forum.ionicframework.com/u/dlodeprojuicer)\
**Post date:** [March 5, 2021, 9:20pm UTC](https://forum.ionicframework.com/t/understanding-appflow/205992/1 "2021-03-05T21:20:43Z")

</div>

This is linked to [this question](https://forum.ionicframework.com/t/android-debug-apk-crushes/205973) but also just a general understanding of how the platform works because I can’t seem to get it right.

I have been battling with an android build on Appflow for a while, but the same code builds debug and release apks in Android studio. I think I have narrowed it down. Appflow builds work when I remove `android.useAndroidX=true` and `android.enableJetifier=true` in `gradle.properties`. But if I do this locally, the builds fail.

1. How do I make sure Appflow will build the app the same way the app builds locally? I get this quite often; I have to resort to using Android studio and upload builds manually on Google Play Store.

2. If Android folder is pushed to Github, is it used at all when I run `git push ionic` and doing builds on Appflow?

3. Doesn’t Appflow use whatever package versions I have in package.json or any other package and/or config file?

---

<div class="post-metadata">

**Author:** ![Likhith\_Aalla](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/likhith_aalla/32/137762_2.png) [@Likhith\_Aalla](https://forum.ionicframework.com/u/Likhith_Aalla)\
**Post date:** [March 9, 2021, 1:19pm UTC](https://forum.ionicframework.com/t/understanding-appflow/205992/2 "2021-03-09T13:19:49Z")

</div>

Hi [dlodeprojuicer](https://forum.ionicframework.com/u/dlodeprojuicer),

For your Capacitor project, it is recommended that you have all of the capacitor versions on the same and latest. Could you try updating the capacitor/core, capacitor/CLI, capacitor/android, and capacitor/ios to the latest version.

Reference: [@capacitor/cli - npm](https://www.npmjs.com/package/@capacitor/cli)  
[@capacitor/core - npm](https://www.npmjs.com/package/@capacitor/core)  
[https://www.npmjs.com/package/@capacitor/ios](https://www.npmjs.com/package/@capacitor/ios)  
[https://www.npmjs.com/package/@capacitor/android](https://www.npmjs.com/package/@capacitor/android)

Also, It looks like you are using a pre-release version of the Ionic Vue framework. You can install the latest here: [https://www.npmjs.com/package/@ionic/vue](https://www.npmjs.com/package/@ionic/vue)

I would recommend upgrading the above as having the latest web-view version updates might help resolve the issues that you are seeing with your app.

> 1. How do I make sure Appflow will build the app the same way the app builds locally? I get this quite often; I have to resort to using Android studio and upload builds manually on Google Play Store.

The build in appflow is a bit different compared to your local machine. Your local machine might cache some of the libraries or dependencies and use them during build but a build in Appflow starts on a fresh VM (which is discarded after every build for security reasons) and is very much different from a persistent system (local machine).

Appflow goes through various steps with every build, which might not happen every time on a local system.

> 1. If Android folder is pushed to Github, is it used at all when I run `git push ionic` and doing builds on Appflow?

Yes, in a capacitor project, the android platform that you commit is used during the build in appflow, and therefore it is required.

> 1. Doesn’t Appflow use whatever package versions I have in package.json or any other package and/or config file?

Yes, you are right. Appflow uses the package versions that you specify in your package.json file and

If you are facing any further issues, I would encourage you to contact the [Appflow support](https://ionic.zendesk.com/hc/en-us/requests/new) for further assistance.

Cheers,
