Solvednativescript cli Android 64 bit Support needs to be enabled by default

Describe the issue
By August 1st, Google will require apps to have 64 bit support enabled in addition to the 32 bit support.

Because the actual nativescript runtimes are native code (i.e. c/c++) this is a requirement we have to do, so getting this re-enabled by default; sooner than later will simplify everyone's life before the Aug 1st deadline.

Additional context
The 64 bit runtimes are shipped, but in the past were disabled by default to keep the .apk size smaller.
Indirectly related to #1392

52 Answers

✔️Accepted Answer

@marast78
If you are continuing to use NS 4/5 -- (Again this is NOT needed anymore with 6.02+)

android {
  defaultConfig {
    generatedDensities = []
    ndk {
      abiFilters.clear()
      abiFilters.addAll(['armeabi-v7a','arm64-v8a'])
    }
  }    
  buildTypes {
    debug {
      ndk {
        abiFilters 'x86'
      }
    }
  }
  aaptOptions {
    additionalParameters "--no-version-vectors"
  }
}

This will disable x86 for release builds; but enable x86 for debug builds --- Thanks to Peter Staev who posted it in slack...

Other Answers:

I added this to my app.gradle and it worked fine.

defaultConfig {
       ......
       ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
}

Hey everyone,
We've just released tns-android 6.0.2 and nativescript-dev-webpack 1.1.1.
You need to update both of them (and you need to target NativeScript 6):

rm -rf platforms
npm i --save-dev nativescript-dev-webpack@1.1.1
tns platform add android@6.0.2
tns build android --release --env.snapshot..

I am experiencing a crash of my app on startup when running it on an Android emulator with the CPU set to x86_64. This is because libNativeScript.so is missing from lib/x86_64 folder of the apk (it is present for all other architectures - x86, arm64-v8a, armeabi-v7a). Is there a plan to have a x86_64 version of libNativeScript.so?

Hey everyone,
As you've noticed - we've made a significant progress on this issue and we expect to release a patch version tomorrow (August 22nd) in case our tests show everything is working as expected. Meanwhile, in case you have some urgent release, you can use the rc versions of nativescript-dev-webpack and tns-android packages. I.e.:

rm -rf platforms
npm i --save-dev nativescript-dev-webpack@rc
tns platform add android@rc
tns build android --release --env.snapshot...

Stay tuned for more information, hopefully we'll be able to release a fix as planned.

More Issues: