Android: "CapacitorSQLitePlugin: null" #601
Replies: 2 comments
-
I'm following up here to share that I have solved my problem, though I still don't understand the root cause. I simply deleted my "android" folder (as generated by Capacitor) and re-ran It's obviously not a great solution (I had to re-implement some Java plugins I'd written, and I still don't understand the root cause of the issue) but I'm sharing this in case it helps anyone who is experiencing similar problems! |
Beta Was this translation helpful? Give feedback.
-
Hey, I found an easier way to avoid this error: Locate the run/debug configuration menu in Android Studio. Select the drop-down menu associated with your deployment target (e.g., "app"), and click on "Edit Configurations." Within the "Run/Debug Configurations" dialog: |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, thanks in advance for your support! Please let me know if I can add any additional information to make this question clearer.
The error
I have a Capacitor project which uses
capacitor-community/sqlite
6.0.1. My code works on iOS, but I'm now trying to extend it to Android. When theaddUpgradeStatement
method is run on the Android version of my app, I get the error:CapacitorSQLitePlugin: null
.Here are the specific error logs:
Version info
@capacitor/core
: 6.1.1@capacitor-community/sqlite
: 6.0.1Ladybug | 2024.2.1 Patch 2
Front-end code
The relevant front-end code is adapted from https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-2/ionic7-react-sqlite-app
What I've tried
I have read the Android Quirks section of the ReadMe.
I was unable to do this, I am instead using:
And at
android/app/src/main/res/xml/data_extraction_rules.xml
I have:I've also read a few similar discussions, but many of them land on the solutions suggested above, which don't seem to be working for me.
I'm new to Android development, so please let me know if there's any other information I should be sharing! Thanks again for your help. 🙏🏻
Beta Was this translation helpful? Give feedback.
All reactions