android - UnsatisfiedLinkError when init skmap on some devices -


i develop application use skmaps , run fine on nexus 5, nexus 6, note 8 , asus fonepad 7

but when call

new skpreparemaptexturethread(this, mapresdirpath, "skmaps.zip", this).start(); 

on lg g4 , huawei ascend mate 7 application force close , in logcat show

java.lang.unsatisfiedlinkerror: dalvik.system.pathclassloader[dexpathlist[[zip file "/data/app/com.moveplus.jeenja-1/base.apk"],nativelibrarydirectories=[/data/app/com.moveplus.jeenja-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libngnative.so" @ java.lang.runtime.loadlibrary(runtime.java:378) @ java.lang.system.loadlibrary(system.java:998) @ com.skobbler.ngx.skmaps.(sourcefile:59) @ com.skobbler.ngx.skpreparemaptexturethread.a(sourcefile:130) @ com.skobbler.ngx.skpreparemaptexturethread.run(sourcefile:86)

i have put skmaps.jar libs folder , skmaps.zip in assets folder , .so file in jnilibs

http://i.stack.imgur.com/p8unh.png

did wrong

edit

according @chiragjn comment try in apk file , found this

http://i.stack.imgur.com/mxbcc.png

arm64-v8a generated other realm libs when application start looking libngnative.so in arm64-v8a folder , not found,then change realm build gradle jar , remove lib/arm64-v8a , lib/mips realm jar file , add project , try run again , unsatisfiedlinkerror gone


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -