我有一个包含本机代码c ++的应用程序,因此当我尝试在google play对话框中上载时,该应用程序具有本机文件不支持64位体系结构,并带有解释其工作原理的链接,但当我在其中编写代码时指令arm64-v8a,x86_64不会出现在APK中?
minSdkVersion 15
targetSdkVersion 28
versionCode 4
versionName "4.0"
multiDexEnabled true
ndk {
abiFilters "armeabi-v7a", "arm64-v8a",'x86','x86_64'
}
ndk {
moduleName "player_shared"
}
}
splits {
abi {
enable true
reset()
include "armeabi-v7a", "arm64-v8a",'x86','x86_64'
universalApk true
}
}
externalNativeBuild {
ndkBuild {
path 'src/main/jni/Application.mk'
}
}
APP_OPTIM:=释放
APP_STL:= c ++ _ static
APP_CPPFLAGS:= -frtti -fexceptions -Wformat = 0 -std = c ++ 11 -DGOOGLE_PLAY_STORE -DBB20 -fsigned-char
APP_LDFLAGS:= -latomic
APP_ABI:= armeabi-v7a arm64-v8a x86 x86_64
APP_PLATFORM:= android-10