Android OCR: Unsatisfied Link Error -


i student working on ocr function school project. able implement functions , run application until now.

i have application on android studio 1.5.1 , able run on old device, samsung galaxy note 3 api 21. recently, changed device samsung galaxy note 5 api 22 , application crashes whenever try run ocr function.

below logcat:

fatal exception: java.lang.illegalstateexception: not execute method of activity @ android.view.view$1.onclick(view.java:4298) @ android.view.view.performclick(view.java:5254) @ android.widget.textview.performclick(textview.java:10557) @ android.view.view$performclick.run(view.java:21203) @ android.os.handler.handlecallback(handler.java:739) @ android.os.handler.dispatchmessage(handler.java:95) @ android.os.looper.loop(looper.java:145) @ android.app.activitythread.main(activitythread.java:6897) @ java.lang.reflect.method.invoke(method.java) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1404) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1199) caused java.lang.reflect.invocationtargetexception @ java.lang.reflect.method.invoke(method.java) @ java.lang.reflect.method.invoke(method.java:372) @ android.view.view$1.onclick(view.java:4293) @ android.view.view.performclick(view.java:5254) @ android.widget.textview.performclick(textview.java:10557) @ android.view.view$performclick.run(view.java:21203) @ android.os.handler.handlecallback(handler.java:739) @ android.os.handler.dispatchmessage(handler.java:95) @ android.os.looper.loop(looper.java:145) @ android.app.activitythread.main(activitythread.java:6897) @ java.lang.reflect.method.invoke(method.java) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1404) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1199) caused java.lang.unsatisfiedlinkerror: dalvik.system.pathclassloader[dexpathlist[[zip file "/data/app/com.example.l33902.contactmanagment1512-2/base.apk"],nativelibrarydirectories=[/data/app/com.example.l33902.contactmanagment1512-2/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libpngt.so" @ java.lang.runtime.loadlibrary(runtime.java:367) @ java.lang.system.loadlibrary(system.java:988) @ com.googlecode.tesseract.android.tessbaseapi.(tessbaseapi.java:43) @ com.example.l33902.contactmanagment1512.showimage.inittess(showimage.java:171) @ com.example.l33902.contactmanagment1512.showimage$ocr.onpreexecute(showimage.java:551) @ android.os.asynctask.executeonexecutor(asynctask.java:591) @ android.os.asynctask.execute(asynctask.java:539) @ com.example.l33902.contactmanagment1512.showimage.startocr(showimage.java:188) @ java.lang.reflect.method.invoke(method.java) @ java.lang.reflect.method.invoke(method.java:372) @ android.view.view$1.onclick(view.java:4293) @ android.view.view.performclick(view.java:5254) @ android.widget.textview.performclick(textview.java:10557) @ android.view.view$performclick.run(view.java:21203) @ android.os.handler.handlecallback(handler.java:739) @ android.os.handler.dispatchmessage(handler.java:95) @ android.os.looper.loop(looper.java:145) @ android.app.activitythread.main(activitythread.java:6897) @ java.lang.reflect.method.invoke(method.java) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1404) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1199)

i have implemented crashlytics in application , below cause of crash stated:

enter image description here

the error stated unsatisfied link error, whereby says application failed not load library "libpngt.so".

the thing is, have encountered error before when working on galaxy note 3 on android studio , managed solve placing "libpngt.so" inside "tess-two\libs\armeabi-v7a" directory. , still working on galaxy note 3

as shown below:

enter image description here

also have searched many sites solutions. ndk build has been built successfully.

currently unsure of can next, had solved error before same issue appears instance while previous solution isn't working.

could caused other error not stated in thew logcat? maybe change of api? wondering, please me out giving possible suggestions still beginner in android developing. in advance!

i think galaxy note 5 armv8 phone. try rebuilding library arm64-v8a on app_abi line of application.mk file:

app_abi := armeabi-v7a x86 mips arm64-v8a x86_64 mips64 

after doing should have 6 directories *.so files under libs directory.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -