App crashes on emulator


#1

I am using android studio to build and also using dexgurad tool to encrypt the source file.
When I run the application on emulator, I get the following error /crash, but it works fine on device.
not sure what I am missing. It was working fine until I upgraded IDE and android SDK.
Any help to fix this issue us highly appreciated.

Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.ctt.celltrak2-1/lib/x86/libsqlcipher_android.so: has text relocations
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:140)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:135)

Thanks


#2

Hello @kmusham

Are you referring to using the 3rd party application DexGuard? If so, it appears to be based on ProGuard. Could you try using our example ProGuard file here from the repository and let us know if that helps?


#3

Thank you for a quick response. unfortunately it didn’t work. I am seeing the same issue.


#4

Hello @kmusham

Does it still crash when you do not use DexGuard? What SDK version are you using?


#5

Yes, still crashing. I am using android 6.0 (API Level 23, Revision 1)
SDK tools 24.3.4
Platform Tools 23.0.0


#6

I’m experiencing the same problem.