# SQLCipher in Android N question

**URL:** <https://discuss.zetetic.net/t/sqlcipher-in-android-n-question/1522>\
**Category:** SQLCipher\
**Created:** [July 13, 2016, 6:58am UTC](https://discuss.zetetic.net/t/sqlcipher-in-android-n-question/1522 "2016-07-13T06:58:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lqynydyxf](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@lqynydyxf](https://discuss.zetetic.net/u/lqynydyxf)\
**Post date:** [July 13, 2016, 6:58am UTC](https://discuss.zetetic.net/t/sqlcipher-in-android-n-question/1522/1 "2016-07-13T06:58:39Z")

</div>

Hi all!  
I updated my nexus’s os to Android N for testing, and when i runed my app, a warning dialog was shown, like this。

 ![](https://us1.discourse-cdn.com/flex016/uploads/zetetic/original/1X/77dcaceabfcdecd107d620f61087fbff4ff9e6df.jpg)  
I read this blog[http://discuss.zetetic.net/t/sqlcipher-for-android-release-android-n-support/1465](http://discuss.zetetic.net/t/sqlcipher-for-android-release-android-n-support/1465), so i removed dlibdatabase\_sqlcipher.so, libsqlcipher\_android.so, and libstlport\_shared.so, using libsqlcipher.so insteadly. I also downloaded sqlcipher.jar and add it in my project。In project, codes like “System.loadlibrary(“stlport\_shared”)” was replaced by “System.loadlibrary(“sqlcipher”)”. After these works, i run my app, but it was crashed. Here is crash log:

> 07-13 14:19:24.132 1515-1515/com.cmcc.hemuyi E/AndroidRuntime: FATAL EXCEPTION: main  
> Process: com.cmcc.hemuyi, PID: 1515  
> java.lang.UnsatisfiedLinkError: dlopen failed: library “libstlport\_shared.so” not found  
> at java.lang.Runtime.loadLibrary0(Runtime.java:977)  
> at java.lang.System.loadLibrary(System.java:1530)  
> at com.arcsoft.closeli.utils.SystemUtils.loadLibrary(SystemUtils.java:67)  
> at com.arcsoft.closeli.utils.SystemUtils.ensureLoadP2pLibs(SystemUtils.java:321)  
> at com.arcsoft.closeli.p2p.P2pManager.(P2pManager.java:56)  
> at com.arcsoft.closeli.p2p.P2pManager.enableLog(P2pManager.java:504)  
> at com.arcsoft.closeli.IPCamApplication.initParams(IPCamApplication.java:266)  
> at com.arcsoft.closeli.IPCamApplication.onCreate(IPCamApplication.java:89)  
> at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)  
> at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5328)  
> at android.app.ActivityThread.-wrap2(ActivityThread.java)  
> at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1513)  
> at android.os.Handler.dispatchMessage(Handler.java:102)  
> at android.os.Looper.loop(Looper.java:154)  
> at android.app.ActivityThread.main(ActivityThread.java:6044)  
> at java.lang.reflect.Method.invoke(Native Method)  
> at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)  
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)  
> 07-13 14:39:55.420 2317-2317/com.cmcc.hemuyi:xg\_service\_v2 I/MultiDex: VM with version 2.1.0 has multidex support  
> 07-13 14:39:55.420 2317-2317/com.cmcc.hemuyi:xg\_service\_v2 I/MultiDex: install  
> 07-13 14:39:55.420 2317-2317/com.cmcc.hemuyi:xg\_service\_v2 I/MultiDex: VM has multidex support, MultiDex support library is disabled.  
> 07-13 14:39:55.438 2317-2317/com.cmcc.hemuyi:xg\_service\_v2 V/LeCamLog: Set log level: 127  
> 07-13 14:39:55.439 2317-2317/com.cmcc.hemuyi:xg\_service\_v2 V/StatisticUtils: set log level: true  
> 07-13 14:39:55.452 2317-2317/com.cmcc.hemuyi:xg\_service\_v2 D/LECAM: JNI\_OnLoad  
> 07-13 14:39:55.456 2317-2317/com.cmcc.hemuyi:xg\_service\_v2 D/INSTALLATION: fade MAC: df:dd:8d:3a:67:2b  
> 07-13 14:39:55.469 2317-2317/com.cmcc.hemuyi:xg\_service\_v2 D/AndroidRuntime: Shutting down VM  
> 07-13 14:39:55.471 2317-2317/com.cmcc.hemuyi:xg\_service\_v2 E/AndroidRuntime: FATAL EXCEPTION: main  
> Process: com.cmcc.hemuyi:xg\_service\_v2, PID: 2317  
> java.lang.UnsatisfiedLinkError: dlopen failed: library “libstlport\_shared.so” not found  
> at java.lang.Runtime.loadLibrary0(Runtime.java:977)  
> at java.lang.System.loadLibrary(System.java:1530)  
> at com.arcsoft.closeli.utils.SystemUtils.loadLibrary(SystemUtils.java:67)  
> at com.arcsoft.closeli.utils.SystemUtils.ensureLoadP2pLibs(SystemUtils.java:321)  
> at com.arcsoft.closeli.p2p.P2pManager.(P2pManager.java:56)  
> at com.arcsoft.closeli.p2p.P2pManager.enableLog(P2pManager.java:504)  
> at com.arcsoft.closeli.IPCamApplication.initParams(IPCamApplication.java:266)  
> at com.arcsoft.closeli.IPCamApplication.onCreate(IPCamApplication.java:89)  
> at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)  
> at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5328)  
> at android.app.ActivityThread.-wrap2(ActivityThread.java)  
> at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1513)  
> at android.os.Handler.dispatchMessage(Handler.java:102)  
> at android.os.Looper.loop(Looper.java:154)  
> at android.app.ActivityThread.main(ActivityThread.java:6044)  
> at java.lang.reflect.Method.invoke(Native Method)  
> at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)  
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

The log indicate that “libstlport\_shared.so” not found. My device is Google Nexus 5X. Can you tell me what I did wrong?  
Thank you in advance!

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [July 13, 2016, 1:41pm UTC](https://discuss.zetetic.net/t/sqlcipher-in-android-n-question/1522/2 "2016-07-13T13:41:41Z")

</div>

Hi @lqynydyxf,

It sounds as if you did not completely remove all of the old portion of the SQLCipher for Android library. You will want to remove all parts of the old library first, we have instructions on utilizing the latest version of the library [here](https://www.zetetic.net/sqlcipher/sqlcipher-for-android).
