问题
I am having trouble using the SDK-Vuforia 5.0.5 with io.realm data pack. When attempting to boot the Vuforia the app this closing and displays the following error in the line of LogCat:
W/System.err﹕ The library libVuforia.so could not be loaded
By removing the following line in gradle the application runs smoothly:
compile 'io.realm:realm-android:0.82.2+'
回答1:
You cannot mix 32-bit and 64-bit libraries which is what is happening here. The proper solution would be to ask Vuforia to provide 64-bit binaries. Until then I am afraid you will manually have to edit the Realm jar file and remove the 64-bit .so
files.
回答2:
just put this into your app build.gradle defaultConfig {} section:
ndk {
abiFilters "armeabi-v7a"
}
来源:https://stackoverflow.com/questions/32485046/use-vuforia-and-io-realm-db-crash-the-app