只编译64位版本
This commit is contained in:
parent
4994bda26f
commit
48033eecb6
@ -143,7 +143,12 @@ android {
|
|||||||
// 但是禁用NDK配置,又无法使用flutter run 命令了,因为编译完成它按照名称匹配找不到.apk包
|
// 但是禁用NDK配置,又无法使用flutter run 命令了,因为编译完成它按照名称匹配找不到.apk包
|
||||||
ndk {
|
ndk {
|
||||||
//设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so)
|
//设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so)
|
||||||
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86","x86_64"
|
// abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86","x86_64"
|
||||||
|
|
||||||
|
|
||||||
|
// 参考魅族平台的公告,得知在2023年1月商店就可以只需要64位应用即可
|
||||||
|
// 这说明32位是很老很老的平台,我们的flutter或者说我们的项目本来就兼容不了老平台,架构兼容也没必要
|
||||||
|
abiFilters "arm64-v8a"
|
||||||
}
|
}
|
||||||
|
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
@ -161,10 +166,11 @@ android {
|
|||||||
abi {
|
abi {
|
||||||
enable true
|
enable true
|
||||||
reset()
|
reset()
|
||||||
// x86_64,x86,armeabi-v7a,armeabi,arm64-v8a
|
// 参考魅族平台的公告,得知在2023年1月商店就可以只需要64位应用即可
|
||||||
// x86_64,x86,armeabi-v7a,armeabi,arm64-v8a
|
// 这说明32位是很老很老的平台,我们的flutter或者说我们的项目本来就兼容不了老平台,架构兼容也没必要
|
||||||
include "armeabi", "armeabi-v7a", "arm64-v8a", "x86","x86_64"
|
// include "armeabi", "armeabi-v7a", "arm64-v8a", "x86","x86_64"
|
||||||
universalApk true
|
// include "arm64-v8a"
|
||||||
|
universalApk false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user