Cordova-sqlite-storage error

When i’m installing cordova-sqlite-storage in my ionic2 app and create apk using the phonegap cloud service i get the foolowing error…
i have installed the plugin using ionic cordova plugin add cordova-sqlite-storage

Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin “cordova-sqlite-storage@~2.0.4” via npm Installing “cordova-sqlite-storage” at “2.0.4” for android Error during processing of action! Attempting to revert… Failed to install ‘cordova-sqlite-storage’:CordovaError: Uh oh! “/tmp/gimlet/31326880/2634203/www_android/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/libs/sqlite-connector.jar” not found! at copyFile (/tmp/gimlet/31326880/2634203/www_android/project/cordova/lib/pluginHandlers.js:219:36) at copyNewFile (/tmp/gimlet/31326880/2634203/www_android/project/cordova/lib/pluginHandlers.js:250:5) at install (/tmp/gimlet/31326880/2634203/www_android/project/cordova/lib/pluginHandlers.js:43:17) at Object.process (/tmp/gimlet/31326880/2634203/www_android/project/cordova/node_modules/cordova-common/src/ActionStack.js:56:25) at PluginManager.doOperation (/tmp/gimlet/31326880/2634203/www_android/project/cordova/node_modules/cordova-common/src/PluginManager.js:117:20) at PluginManager.addPlugin (/tmp/gimlet/31326880/2634203/www_android/project/cordova/node_modules/cordova-common/src/PluginManager.js:147:17) at /tmp/gimlet/31326880/2634203/www_android/project/cordova/Api.js:254:18 at _fulfilled (/tmp/gimlet/31326880/2634203/www_android/project/cordova/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/tmp/gimlet/31326880/2634203/www_android/project/cordova/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/tmp/gimlet/31326880/2634203/www_android/project/cordova/node_modules/q/q.js:796:13) Uh oh! “/tmp/gimlet/31326880/2634203/www_android/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/libs/sqlite-connector.jar” not found!

Can you build the app locally?
If so, this is more a question for the Phonegap Build support.

@Sujan12
i got the same issue . But when i created the app locally it crashes

Post your ionic info output please.

@Sujan12

global packages:

@ionic/cli-utils : 1.5.0
Cordova CLI      : 7.0.1
Ionic CLI        : 3.5.0

local packages:

@ionic/app-scripts              : 1.3.12
@ionic/cli-plugin-cordova       : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms               : android 6.2.3
Ionic Framework                 : ionic-angular 3.5.0

System:

Node       : v6.10.3
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 3.10.10

I don’t have that code with me now… Could you please tell me what’s your
problem?

i cant build by app with phonegap . When i tried building it locally the app is crashing

I actually can’t reproduce the issue:

PS C:\Users\Jan\Documents> ionic start ionicPluginTest blank
[INFO] Fetching app base (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz)
√ Downloading - done!
[INFO] Fetching starter template blank (https://github.com/ionic-team/ionic2-starter-blank/archive/master.tar.gz)
√ Downloading - done!
√ Updating package.json with app details - done!
√ Creating configuration file ionic.config.json - done!
[INFO] Installing dependencies may take several minutes!
> npm install
√ Running command - done!
> npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
√ Running command - done!
> git init
√ Running command - done!
> git add -A
√ Running command - done!
> git commit -m "Initial commit" --no-gpg-sign
√ Running command - done!

♬ ♫ ♬ ♫  Your Ionic app is ready to go! ♬ ♫ ♬ ♫

Run your app in the browser (great for initial development):
  ionic serve

Run on a device or simulator:
  ionic cordova run ios

Test and share your app on a device with the Ionic View app:
  http://view.ionic.io

? Link this app to your Ionic Dashboard to use tools like Ionic View? No

Go to your newly created project: cd .\ionicPluginTest
PS C:\Users\Jan\Documents> cd .\ionicPluginTest\
PS C:\Users\Jan\Documents\ionicPluginTest> ionic cordova platform add android
> cordova platform add android --save
√ Running command - done!
Using cordova-fetch for cordova-android@~6.2.2
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: io.ionic.starter
        Name: MyApp
        Activity: MainActivity
        Android target: android-25
Subproject Path: CordovaLib
Android project created with cordova-android@6.2.3
Discovered plugin "cordova-plugin-console" in config.xml. Adding it to the project
Installing "cordova-plugin-console" for android
Adding cordova-plugin-console to package.json
Saved plugin info for "cordova-plugin-console" to config.xml
Discovered plugin "cordova-plugin-device" in config.xml. Adding it to the project
Installing "cordova-plugin-device" for android
Adding cordova-plugin-device to package.json
Saved plugin info for "cordova-plugin-device" to config.xml
Discovered plugin "cordova-plugin-splashscreen" in config.xml. Adding it to the project
Installing "cordova-plugin-splashscreen" for android
Adding cordova-plugin-splashscreen to package.json
Saved plugin info for "cordova-plugin-splashscreen" to config.xml
Discovered plugin "cordova-plugin-statusbar" in config.xml. Adding it to the project
Installing "cordova-plugin-statusbar" for android
Adding cordova-plugin-statusbar to package.json
Saved plugin info for "cordova-plugin-statusbar" to config.xml
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for android

               This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous p
latform version, you do *not* need this plugin since the whitelist will be built in.

Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
Discovered plugin "ionic-plugin-keyboard" in config.xml. Adding it to the project
Installing "ionic-plugin-keyboard" for android
Adding ionic-plugin-keyboard to package.json
Saved plugin info for "ionic-plugin-keyboard" to config.xml
--save flag or autosave detected
Saving android@~6.2.3 into config.xml file ...
√ Copying default image resources into ./resources/android - done!

PS C:\Users\Jan\Documents\ionicPluginTest> ionic cordova plugin add cordova-sqlite-storage
> cordova plugin add cordova-sqlite-storage --save
√ Running command - done!
Installing "cordova-sqlite-storage" for android
installing external dependencies via npm
npm install of external dependencies ok
Adding cordova-sqlite-storage to package.json
Saved plugin info for "cordova-sqlite-storage" to config.xml
PS C:\Users\Jan\Documents\ionicPluginTest> ionic info

global packages:

    @ionic/cli-utils : 1.5.0
    Cordova CLI      : 7.0.1
    Ionic CLI        : 3.5.0

local packages:

    @ionic/app-scripts              : 2.0.2
    @ionic/cli-plugin-cordova       : 1.4.1
    @ionic/cli-plugin-ionic-angular : 1.3.2
    Cordova Platforms               : android 6.2.3
    Ionic Framework                 : ionic-angular 3.5.3

System:

    Node       : v8.1.3
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 5.1.0

First started a new project, then added the Android platform, then added the plugin successfully. Finally ran ionic info for env output.

Just remove the plugin and rebuild the apk…
Even though I couldn’t find out what’s your error|!

ANDROID_HOME=F:\software\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_92
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_7cy2buq2dr5utph0c8e7zje1z.run(F:\xampp\htdocs\projects\Cryptop\project\platforms\android\build.gradle:137)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.

:preBuild UP-TO-DATE
:preDebugBuild
 UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareOrgApacheCordovaCordovaLib623DebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources
 UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:compileDebugJavaWithJavac UP-TO-DATE
:compileDebugNdk UP-TO-DATE
:compileDebugSources UP-TO-DATE
:mergeDebugShaders UP-TO-DATE
:compileDebugShaders UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:transformClassesWithDexForDebug
 UP-TO-DATE

:mergeDebugJniLibFolders
 UP-TO-DATE
:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:processDebugJavaRes

UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug

UP-TO-DATE
:validateSigningDebug
:packageDebug

:assembleDebug
:cdvBuildDebug


BUILD SUCCESSFUL

Total time: 4.142 secs
Built the following apk(s):
        F:/xampp/htdocs/projects/Cryptop/project/platforms/android/build/outputs/apk/android-debug.apk

ANDROID_HOME=F:\software\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_92
No target specified, deploying to device 'HT35NW915864'.

Skipping build...

Built the following apk(s):
        F:/xampp/htdocs/projects/Cryptop/project/platforms/android/build/outputs/apk/android-debug.apk
Using apk: F:/xampp/htdocs/projects/Cryptop/project/platforms/android/build/outputs/apk/android-debug.apk

Package name: com.sparklingapps.cryptop
[10:25:13]  tslint: F:/xampp/htdocs/projects/Cryptop/project/src/pages/settings/settings.ts, line: 88
            'browser' is declared but never used.

      L87:  goOnline(link){
      L88:      const browser = this.inapp.create(link);

[10:25:13]  tslint: F:/xampp/htdocs/projects/Cryptop/project/src/pages/settings/settings.ts, line: 3
            'Headers' is declared but never used.

       L2:  import { IonicPage, NavController, NavParams,LoadingController } from 'ionic-angular';
       L3:  import { Http, Headers, RequestOptions } from '@angular/http';
       L4:  import 'rxjs/add/operator/map';

[10:25:13]  tslint: F:/xampp/htdocs/projects/Cryptop/project/src/pages/settings/settings.ts, line: 3
            'RequestOptions' is declared but never used.

       L2:  import { IonicPage, NavController, NavParams,LoadingController } from 'ionic-angular';
       L3:  import { Http, Headers, RequestOptions } from '@angular/http';
       L4:  import 'rxjs/add/operator/map';

[10:25:13]  tslint: F:/xampp/htdocs/projects/Cryptop/project/src/pages/home/home.ts, line: 38
            'networkState' is declared but never used.

      L37:  private segment: any;
      L38:  private networkState: any;
      L39:  public showStatus:number;

[10:25:13]  tslint: F:/xampp/htdocs/projects/Cryptop/project/src/pages/home/home.ts, line: 52
            Property '_ngZone' is declared but never used.

      L52:  ic navCtrl: NavController,public network: Network,private _ngZone: NgZone,public toast:ToastController ,publ
      L53:          this.selectedTitle = 'Hour';

[10:25:13]  tslint: F:/xampp/htdocs/projects/Cryptop/project/src/providers/admob/admob.ts, line: 16
            'adMobId' is declared but never used.

      L15:  //AdMob IDs from the AdMob console
      L16:  private adMobId: { banner: string, interstitial: string };
      L17:  private adOptions: AdMobOptions = <AdMobOptions>{};

[10:25:13]  tslint: F:/xampp/htdocs/projects/Cryptop/project/src/providers/admob/admob.ts, line: 17
            'adOptions' is declared but never used.

      L16:    private adMobId: { banner: string, interstitial: string };
      L17:    private adOptions: AdMobOptions = <AdMobOptions>{};

[10:25:13]  tslint: F:/xampp/htdocs/projects/Cryptop/project/src/providers/admob/admob.ts, line: 2
            All imports are unused.

       L1:  import { Injectable } from '@angular/core';
       L2:  import { Http } from '@angular/http';
       L3:  import 'rxjs/add/operator/map';

[10:25:13]  tslint: F:/xampp/htdocs/projects/Cryptop/project/src/providers/admob/admob.ts, line: 4
            'AdMobPro' is declared but never used.

       L3:  import 'rxjs/add/operator/map';
       L4:  import { AdMobPro, AdMobOptions } from '@ionic-native/admob-pro';
       L5:  import { Platform } from 'ionic-angular';

[10:25:13]  lint finished in 20.14 s

Yes and now what? That is the output of a successful build with lots of lint errors. What should I do with it?

The app crashes the momet i install it in android device