Use Vuforia and io.realm db crash the app

吃可爱长大的小学妹 提交于 2019-12-25 04:27:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!