Issue
I have an Mi 9 phone, which has a SnapDragon 855, which as far as I could tell runs ARMv8.
I created a simple C++ NDK project in Android Studio, and tried to link a library compiled for aarch64 which is ARMv8, however it complains because it's trying to compile for ARMv7.
I think ARMv7 can run on ARMv8, but why does it do that? Is it possible to force an ARMv8 compilation? I only have the ARMv8 version of the library.
Solution
modify build.gradle like following:
defaultConfig {
ndk {
abiFilters 'arm64-v8a'
}
}
Answered By - Jake 'Alquimista' LEE
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.