I created my project with the command from the guide:
vue init nativescript-vue/vue-cli-template <project-name>
and I build release APKs with the following command:
tns build android --bundle --release --key-store-path ./my_key.jsk --key-store-password *** --key-store-alias key1 --key-store-alias-password ***
But when I upload the APKs to Google Play Console, I get this error:
This release is not compliant with the Google Play 64-bit requirement
With a link to this page: https://developer.android.com/distribute/best-practices/develop/64-bit.
How can I build release APKs compatible with the new requirements?
Others say I'm supposed to add ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
to my Gradle script. Is that what I should do? And where exactly?
APK is ZIP. You can open it and check directory lib to see which architectures are supported. If there is no directory lib , it supports all architectures. 64-bit Android is backwards compatible and can run 32-bit applications.
What is NativeScript? NativeScript is an open-source framework for building truly native mobile apps. It is a cross-platform mobile development framework that allows developers to use modern web technologies such as Angular and Vue. js or just HTML, CSS, and JavaScript/TypeScript to build mobile apps.
NativeScript-Vue — NativeScript-Vue is a NativeScript plugin which allows you to use Vue.js to craft your mobile application How does NativeScript work? NativeScript uses native user interface components, HTML elements such as <div> and <span> do not exist in NativeScript.
To install the NativeScript CLI, open your terminal and run: Verify the installation was successful by running tns in your terminal. You should see a list of the available commands. We made a custom demo for . No really. Click here to check it out. Tools we will be using to build our app include:
It takes away the need to learn native technologies such as Swift or Objective-C for iOS and Java or Kotlin for Android and enables you to develop for iOS, Android, and the web, from a single JavaScript codebase. NativeScript was created by Telerik in 2014. This tutorial assumes the reader has the following:
You can install Vue CLI with the following command using Yarn: To install the NativeScript CLI, open your terminal and run: Verify the installation was successful by running tns in your terminal. You should see a list of the available commands. We made a custom demo for .
In App_Resources/Android/app.gradle
update your defaultConfig to include:
ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
So your app.gradle should end up looking something like:
android {
defaultConfig {
generatedDensities = []
applicationId = "<applicationId>"
ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
}
aaptOptions {
additionalParameters "--no-version-vectors"
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With