Exception when importing the library - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
01 Jun 2018
During last few days we're experiencing some delay in website stmp provider channel.
Some notification email from the website might not reaching containers.
We're working on a definitive solution.
Read More...
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: Exception when importing the library

Exception when importing the library 4 years 3 months ago #5624

  • msaudi
  • msaudi's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
When I imported the library to my project I get the error below. I use ORMLite and the stlport_shared exists and included on libs folder. the app works fine without including PDFReader library in my project

03-12 11:51:22.224: E/AndroidRuntime(30512): FATAL EXCEPTION: main
03-12 11:51:22.224: E/AndroidRuntime(30512): Process: com.appsv.readbook, PID: 30512
03-12 11:51:22.224: E/AndroidRuntime(30512): java.lang.UnsatisfiedLinkError: Couldn't load stlport_shared from loader dalvik.system.PathClassLoader[DexPathListzip file "/data/app/com.appsv.readbook-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.appsv.readbook-2, /vendor/lib, /system/lib]: findLibrary returned null
03-12 11:51:22.224: E/AndroidRuntime(30512): at java.lang.Runtime.loadLibrary(Runtime.java:358)
03-12 11:51:22.224: E/AndroidRuntime(30512): at java.lang.System.loadLibrary(System.java:526)
03-12 11:51:22.224: E/AndroidRuntime(30512): at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:112)
03-12 11:51:22.224: E/AndroidRuntime(30512): at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:107)
03-12 11:51:22.224: E/AndroidRuntime(30512): at com.appsv.readbook.model.db.DBManager.<init>(DBManager.java:25)
03-12 11:51:22.224: E/AndroidRuntime(30512): at com.appsv.readbook.model.db.DBManager.getInstance(DBManager.java:16)
03-12 11:51:22.224: E/AndroidRuntime(30512): at com.appsv.readbook.model.dao.db.DbAbstractDao.<init>(DbAbstractDao.java:14)
03-12 11:51:22.224: E/AndroidRuntime(30512): at com.appsv.readbook.model.dao.db.UserDataDao.<init>(UserDataDao.java:16)
03-12 11:51:22.224: E/AndroidRuntime(30512): at com.appsv.readbook.model.dao.db.UserDataDao.getInstance(UserDataDao.java:25)
03-12 11:51:22.224: E/AndroidRuntime(30512): at com.appsv.readbook.common.Global.getuserdata(Global.java:52)
03-12 11:51:22.224: E/AndroidRuntime(30512): at com.appsv.readbook.ui.activity.BaseFragmentActivity.onStart(BaseFragmentActivity.java:83)
03-12 11:51:22.224: E/AndroidRuntime(30512): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171)
03-12 11:51:22.224: E/AndroidRuntime(30512): at android.app.Activity.performStart(Activity.java:5241)
03-12 11:51:22.224: E/AndroidRuntime(30512): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2168)
03-12 11:51:22.224: E/AndroidRuntime(30512): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
03-12 11:51:22.224: E/AndroidRuntime(30512): at android.app.ActivityThread.access$800(ActivityThread.java:135)
03-12 11:51:22.224: E/AndroidRuntime(30512): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
03-12 11:51:22.224: E/AndroidRuntime(30512): at android.os.Handler.dispatchMessage(Handler.java:102)
03-12 11:51:22.224: E/AndroidRuntime(30512): at android.os.Looper.loop(Looper.java:136)
03-12 11:51:22.224: E/AndroidRuntime(30512): at android.app.ActivityThread.main(ActivityThread.java:5017)
03-12 11:51:22.224: E/AndroidRuntime(30512): at java.lang.reflect.Method.invokeNative(Native Method)
03-12 11:51:22.224: E/AndroidRuntime(30512): at java.lang.reflect.Method.invoke(Method.java:515)
03-12 11:51:22.224: E/AndroidRuntime(30512): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
03-12 11:51:22.224: E/AndroidRuntime(30512): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
03-12 11:51:22.224: E/AndroidRuntime(30512): at dalvik.system.NativeStart.main(Native Method)
The topic has been locked.

Exception when importing the library 4 years 3 months ago #5626

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 830
  • Karma: 43
  • Thank you received: 10
the project must include libs subdir.
some librdpdf.so for different paltform.
The topic has been locked.

Exception when importing the library 4 years 3 months ago #5627

  • msaudi
  • msaudi's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
This is not the problem. I have included the full project of yours including all libraries and its sub folders and it works as long as I don't use any SQLite code that uses sqlcipher. I think this could be the problem. Do you have problems with sqlcipher integration or so ?
The topic has been locked.

Exception when importing the library 4 years 3 months ago #5628

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 830
  • Karma: 43
  • Thank you received: 10
it seems SQLChiper use stl for C++
"stlport_shared"

PDF library just use libc not include any C++ library.
Last edit: by .
The topic has been locked.

Exception when importing the library 4 years 3 months ago #5631

  • msaudi
  • msaudi's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
So ? what do you think the problem could be ?
The topic has been locked.

Exception when importing the library 4 years 3 months ago #5635

  • msaudi
  • msaudi's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
I found the problem in armeabi-v7a version of the library. If I added this folder, I have this crash. If i removed it and left the other folders armeabi, mips, x86 and the jar file, The app launched and did not crash.

May I know how removing this folder affects my project ? should I include all of them. I'm building Android application which will run in all android supported devices.
The topic has been locked.
  • Page:
  • 1
  • 2
Powered by Kunena Forum