Skip to content

CapacitorException: CapacitorSQLitePlugin: null #688

Closed as not planned
Closed as not planned

Description

@medida

I have an an ionic / capactiror / Angular app which i'm building for Android devices.

I have used the Sqlite plugin succesfully without encrytion while i was developing it.
Now i'm testing with encryption and i keep running into the issue: CapacitorException: CapacitorSQLitePlugin: null

If i remove the app and then run it from vs code with live reload so i can debug it, it will succesfully build the database and i can use it correctly... If i then close the app and restart the debugging from vscode the plugin always returnes the following error.

CapacitorException: CapacitorSQLitePlugin: null

I have created a basic app with just this plugin and i'm about to start the task of copying over my entire project to this project, but i'm hoping this can be resolved without me doing this.

Everything is upto date - and works the first time the database is built / used...

When i run it through Android Studio in the logcat i get the following

To native (Capacitor plugin): callbackId: 40599979, pluginId: CapacitorSQLite, methodName: isSecretStored
callback: 40599979, pluginId: CapacitorSQLite, methodName: isSecretStored, methodData: {}
*** ERROR CapacitorSQLitePlugin: null
Sending plugin error: {"save":false,"callbackId":"40599979","pluginId":"CapacitorSQLite","methodName":"isSecretStored","success":false,"error":{"message":"CapacitorSQLitePlugin: null"}}
File: - Line 330 - Msg: [object Object]
File: https://localhost/main.9afa35e0584f87a8.js - Line 1 - Msg: ERROR Error: CapacitorSQLitePlugin: null

thanks

Activity

  1. robingenz commented on Apr 9, 2026

    @robingenz
    Member

    Thank you for your request.
    Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so we can debug the issue.

  2. github-actions commented on Apr 9, 2026

    @github-actions

    This issue has been labeled as needs: reproduction. This label is added to issues that need a code reproduction.

    Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so we can debug the issue.

    If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for us to reproduce the issue.

  3. medida commented on Apr 9, 2026

    @medida
    Author

    thanks
    Sadly my project cannot be uploaded and i can't reproduce the error it in a new project.

    It must be another plugin causing the issue.

  4. robingenz commented on Apr 9, 2026

    @robingenz
    Member

    Thanks for the update! In this case we are closing this issue.

  5. medida commented on Apr 20, 2026

    @medida
    Author

    Just leaving this comment here for future me !

    I was able to reproduce the issue with the CapacitorSQLitePlugin : NULL when looking for the isSecretStored

    I was also using @aparajita/capacitor-secure-storage for some secure storage as well - when this was used... it broke the isSecretStored process..

  6. locked as resolved and limited conversation to collaborators on Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions