Android Question Application Crash for PDF Viewer

junaidahmed

Well-Known Member
Licensed User
Longtime User
I have downloaded Basic4Android pdfviewer example,When I run this application in "Emulator",its gets crash.Please check attached file and advise how to solve the problem.....
 

Attachments

  • pdfviewe_error.png
    pdfviewe_error.png
    177.6 KB · Views: 372

junaidahmed

Well-Known Member
Licensed User
Longtime User
Please check below Log and advise how to solve the problem....

LogCat connected to: emulator-5554
--------- beginning of main
--------- beginning of system
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 340)
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/b4a.example-2/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example-2/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libpdfview2.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:984)
at java.lang.System.loadLibrary(System.java:1530)
at de.donmanfred.pdfviewerwrapper.init(pdfviewerwrapper.java:104)
at b4a.example.main._activity_create(main.java:340)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at b4a.example.main.afterFirstLayout(main.java:102)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
main_activity_create (java line: 340)
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/b4a.example-2/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example-2/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libpdfview2.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:984)
at java.lang.System.loadLibrary(System.java:1530)
at de.donmanfred.pdfviewerwrapper.init(pdfviewerwrapper.java:104)
at b4a.example.main._activity_create(main.java:340)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at b4a.example.main.afterFirstLayout(main.java:102)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
--------- beginning of crash
 
Upvote 0

junaidahmed

Well-Known Member
Licensed User
Longtime User
I have test in "Real Device" also.but its show an error message as "Unfortunately ,B4A pdfviewer has stopped"
 
Upvote 0

junaidahmed

Well-Known Member
Licensed User
Longtime User
Please check my below Config...

Device - Samsung Galaxy Note with Model "SM-N910C"
Android - 6.0.1
API Version - 25
 
Upvote 0

junaidahmed

Well-Known Member
Licensed User
Longtime User
Please provide your example code as well as .apk file so that I can check where it is exact problem.....




Pls help .....
 
Upvote 0

junaidahmed

Well-Known Member
Licensed User
Longtime User
Thanks for Providing example code....

I have tried above code in trial version of basic4Android,but again its not working.Please check below log and advise how to do that....


LogCat connected to: emulator-5554
--------- beginning of main
--------- beginning of system
--------- beginning of crash
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
CopyFile()
test.pdf does not exist at DirRootExternal
test.pdf copied
main_activity_create (java line: 350)
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/b4a.example.pdfviewer-1/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example.pdfviewer-1/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libpdfview2.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:984)
at java.lang.System.loadLibrary(System.java:1530)
at de.donmanfred.pdfviewerwrapper.init(pdfviewerwrapper.java:104)
at b4a.example.pdfviewer.main._activity_create(main.java:350)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at b4a.example.pdfviewer.main.afterFirstLayout(main.java:102)
at b4a.example.pdfviewer.main.access$000(main.java:17)
at b4a.example.pdfviewer.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
CopyFile()
main_activity_create (java line: 350)
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/b4a.example.pdfviewer-1/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example.pdfviewer-1/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libpdfview2.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:984)
at java.lang.System.loadLibrary(System.java:1530)
at de.donmanfred.pdfviewerwrapper.init(pdfviewerwrapper.java:104)
at b4a.example.pdfviewer.main._activity_create(main.java:350)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at b4a.example.pdfviewer.main.afterFirstLayout(main.java:102)
at b4a.example.pdfviewer.main.access$000(main.java:17)
at b4a.example.pdfviewer.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
 
Upvote 0
Top