android - 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?
解决方案
在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"
}
}
推荐阅读
- spring - ModelMapper 如何在不覆盖属性的情况下将 DTO 映射到域模型
- javascript - 对齐两个表格的表格行
- android - 在cardview周围带有透明背景的片段 - 如何在外面触摸时关闭片段?
- c# - 如果用户不选择任何组,则搜索所有数据的更好方法
- node.js - 如何解决 TypeError:validateSchema 不是 React 应用程序的函数?
- opengl - OpenGL:防止在每个着色器程序中产生雾
- javascript - FlatList 不会在道具更改时重新渲染
- r-raster - R 中的水深测量栅格(负值栅格)未正确读取
- bash - Jenkins 参数化变量名将空格转换为下划线
- jsf - jsf primefaces中动态更改分页行值