其他分享
首页 > 其他分享> > android-如何构建与Google Play 64位要求兼容的NativeScript Vue应用?

android-如何构建与Google Play 64位要求兼容的NativeScript Vue应用?

作者:互联网

我使用指南中的命令创建了项目:

vue init nativescript-vue/vue-cli-template <project-name>

然后使用以下命令构建发行版APK:

tns build android --bundle --release --key-store-path ./my_key.jsk --key-store-password *** --key-store-alias key1 --key-store-alias-password ***

但是,当我将APK上传到Google Play控制台时,出现此错误:

This release is not compliant with the Google Play 64-bit requirement

带有指向此页面的链接:https://developer.android.com/distribute/best-practices/develop/64-bit.

如何构建与新要求兼容的发行版APK?

其他人说我应该在我的Gradle脚本中添加ndk.abiFilters’armeabi-v7a’,’arm64-v8a’,’x86′,’x86_64′.那是我应该做的吗?到底在哪里?

解决方法:

在App_Resources / Android / app.gradle中,将defaultConfig更新为包括:

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

因此,您的app.gradle应该最终看起来像:

android {  
  defaultConfig {  
    generatedDensities = []
    applicationId = "<applicationId>"
    ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
  }  
  aaptOptions {  
    additionalParameters "--no-version-vectors"  
  }  
} 


标签:build,nativescript-vue,google-play-console,android
来源: https://codeday.me/bug/20191108/2005394.html