Ionic/Cordova & Android 64-bit requirement

  1. go to this link https://www.npmjs.com/package/cordova-plugin-build-architecture and install "npm i cordova-plugin-build-architecture"
  2. Add the following lines in your "config.xml"

<preference name="xwalk64bit" value="true" />


<preference name="buildArchitecture" value="arm64" /> <!-- [If you want to fetch the 64 bit arm build] -->

Screen Shot Attached: enter image description here

  1. Last Step is you can run gradlew assembleRelease command in your cd platforms/android folder and see the build outputs apk with these folders "x86_64" & "arm64"

It doesn't really depend on Cordova/Ionic, but in the plugins you use.

If any of the plugins you use, has .so libraries, then they should provide a 64 bit version of that library. If none of your plugins use .so libraries, then you are good to go.

If you are not sure if your plugins use .so libraries, Google recommends to check your apk (unzipping it or using APK analyzer). If you have a lib folder and it has armeabi-v7a and x86 folders, make sure there is also arm64-v8a and x86_64 folders with the same libraries in each of them.

For more information: https://developer.android.com/distribute/best-practices/develop/64-bit