Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build NativeScript Vue app compliant with Google Play 64-bit requirement?

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?

like image 982
Mateusz Avatar asked May 14 '19 05:05

Mateusz


People also ask

How do I know if APK is 32 or 64 bit?

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 Vue?

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.

What is nativescript-vue?

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.

How do I install the NativeScript CLI?

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:

What is NativeScript for iOS and Android?

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:

How do I install Vue CLI using yarn?

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 .


1 Answers

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"  
  }  
} 


like image 187
Frank Avatar answered Sep 22 '22 02:09

Frank