# App stops working after adding sqlite plugin

**URL:** <https://forum.ionicframework.com/t/app-stops-working-after-adding-sqlite-plugin/80141>\
**Category:** ionic-v3\
**Created:** [February 19, 2017, 5:46am UTC](https://forum.ionicframework.com/t/app-stops-working-after-adding-sqlite-plugin/80141 "2017-02-19T05:46:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yasirpanjsheri](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@yasirpanjsheri](https://forum.ionicframework.com/u/yasirpanjsheri)\
**Post date:** [February 19, 2017, 5:46am UTC](https://forum.ionicframework.com/t/app-stops-working-after-adding-sqlite-plugin/80141/1 "2017-02-19T05:46:54Z")

</div>

Hi guy, My app crashes on android 4.4.2 once I add `cordova plugin add cordova-sqlite-storage --save`  
im not sure whats the problem… the builds successfully (building 2 apk ‘x86’ and ‘ARMv7’) but once I start the up after the splashscreen it crashes displaying `Unfortunately app stopped working`

logcat:

```
02-19 12:30:35.789 D/XWalkCordovaUiClient( 2409):  
   onPageLoadStopped(file:///android_asset/www/index.html)
02-19 12:30:35.789 D/CordovaWebViewImpl( 2409): 
   onPageFinished(file:///android_asset/www/index.html)
02-19 12:30:35.819 I/chromium( 2409): 
   [INFO:CONSOLE(26)] "DEVICE READY FIRED AFTER", source: file:///android_asset/www/build/main.js (26)
02-19 12:30:35.819 I/chromium( 2409): 
   [INFO:CONSOLE(35)] "DEVICE READY FIRED AFTER", source: file:///android_asset/www/build/main.js (35)
02-19 12:30:35.829 I/App ( 2409): 
    WARNING: Back Button Default Behavior will be overridden. The backbutton event will be fired!
02-19 12:30:35.849 I/chromium( 2409): 
    [INFO:CONSOLE(17)] "Ionic Storage driver:", source: file:///android_asset/www/build/main.js (17)
02-19 12:30:35.869 I/chromium( 2409): 
   [INFO:CONSOLE(175)] "OPEN database: _ionicstorage", source: file:///android_asset/www/plugins/cordova-sqlite-storage/www/SQLitePlugin.js (175)
02-19 12:30:35.879 V/SQLitePlugin( 2409):  
   Android db implementation: built-in android.database.sqlite package
02-19 12:30:35.879 V/info ( 2409): 
   Open sqlite db: /data/data/com.ionicframework.jobsaf211675/databases/_ionicstorage
02-19 12:30:35.879 W/dalvikvm( 2409): 
   Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lio/sqlc/SQLiteConnectorDatabase;
02-19 12:30:35.879 W/dalvikvm( 2409): 
   threadid=33: thread exiting with uncaught exception (group=0x41d09da0)
02-19 12:30:35.889 I/chromium( 2409): 
   [INFO:CONSOLE(106)] "new transaction is waiting for open operation", source: file:///android_asset/www/plugins/cordova-sqlite-storage/www/SQLitePlugin.js (106)
02-19 12:30:35.889 E/AndroidRuntime( 2409): 
   FATAL EXCEPTION: pool-1-thread-2
02-19 12:30:35.889 E/AndroidRuntime( 2409): 
   Process: com.ionicframework.jobsaf211675, PID: 2409
02-19 12:30:35.889 E/AndroidRuntime( 2409): 
   java.lang.UnsatisfiedLinkError: Couldn't load sqlc-native-driver from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.ionicframework.jobsaf211675-1.apk,libraryPath=/data/app-lib/com.ionicframework.jobsaf211675-1]: findLibrary returned null
02-19 12:30:35.889 E/AndroidRuntime( 2409):     
   at java.lang.Runtime.loadLibrary(Runtime.java:358)
02-19 12:30:35.889 E/AndroidRuntime( 2409):          
   at java.lang.System.loadLibrary(System.java:526)
02-19 12:30:35.889 E/AndroidRuntime( 2409):     
   at io.liteglue.SQLiteConnector.<init>(SQLiteConnector.java:8)
02-19 12:30:35.889 E/AndroidRuntime( 2409):     
   at io.sqlc.SQLiteConnectorDatabase.<clinit>(SQLiteConnectorDatabase.java:41)
02-19 12:30:35.889 E/AndroidRuntime( 2409):     
   at io.sqlc.SQLitePlugin.openDatabase(SQLitePlugin.java:211)
02-19 12:30:35.889 E/AndroidRuntime( 2409):     
   at io.sqlc.SQLitePlugin.access$000(SQLitePlugin.java:32)
02-19 12:30:35.889 E/AndroidRuntime( 2409):     
   at io.sqlc.SQLitePlugin$DBRunner.run(SQLitePlugin.java:327)
02-19 12:30:35.889 E/AndroidRuntime( 2409):     
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
02-19 12:30:35.889 E/AndroidRuntime( 2409):     
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
02-19 12:30:35.889 E/AndroidRuntime( 2409):     
   at java.lang.Thread.run(Thread.java:841)
02-19 12:30:36.209 D/CordovaActivity( 2409): 
   Paused the activity.
02-19 12:30:36.860 D/CordovaActivity( 2409): 
   Stopped the activity.
02-19 12:30:36.860 D/CordovaActivity( 2409):
   CordovaActivity.onDestroy()
02-19 12:30:36.870 D/CordovaWebViewImpl( 2409): 
   >>> loadUrl(about:blank)
02-19 12:30:36.880 E/chromium( 2409): 
  [ERROR:runtime_javascript_dialog_manager.cc(70)] Not implemented reached in virtual void xwalk::RuntimeJavaScriptDialogManager::ResetDialogState(content::WebContents*)
02-19 12:30:36.890 W/cr_ScreenOrientation( 2409): Removing an inexistent observer! 

```

I have also used ionic storage as well in the project `import { Storage } from '@ionic/storage';`  
Im not sure if this is causing the problem !!  
can someone help, thanx

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [February 20, 2017, 1:56pm UTC](https://forum.ionicframework.com/t/app-stops-working-after-adding-sqlite-plugin/80141/2 "2017-02-20T13:56:29Z")

</div>

Can you reproduce the problem in an “empty” project where you only add the sqlite plugin and then try to run it the same way on the same device?
