New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android.database.sqlite.SQLiteException #138
Comments
Thanks @zbettenbuk - API 16 and below do not have a |
@wmcmahan is there an update on this issue? |
closing #168 |
Recently, I also faced same issue. Finally, I found the solution. First of all, you have to find all logged in gmail id from the device and then select any one gmail account and find its calendar id. After that you have to pass that id to the event query like this....
at last call you function See below method for finding email id's... public static Hashtable listCalendarId(Context c) {
|
I am having the same issue in my android pixel device. |
We receive the following exception on Android 4.1.2:
Fatal Exception: android.database.sqlite.SQLiteException: no such column: isPrimary (code 1): , while compiling: SELECT _id, calendar_displayName, account_name, isPrimary, calendar_access_level, allowedAvailability, account_type FROM Calendars WHERE (_id=?)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:184)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:366)
at android.content.ContentResolver.query(ContentResolver.java:425)
at android.content.ContentResolver.query(ContentResolver.java:367)
at com.calendarevents.CalendarEvents.findCalendarById(CalendarEvents.java:124)
at com.calendarevents.CalendarEvents.serializeEvent(CalendarEvents.java:857)
at com.calendarevents.CalendarEvents.serializeEvents(CalendarEvents.java:786)
at com.calendarevents.CalendarEvents.findEvents(CalendarEvents.java:215)
at com.calendarevents.CalendarEvents.access$200(CalendarEvents.java:38)
at com.calendarevents.CalendarEvents$3.run(CalendarEvents.java:1011)
at java.lang.Thread.run(Thread.java:856)
Environment
Fabric info see attached.
Environment:
OS: macOS High Sierra 10.13.4
Node: 8.9.3
Yarn: Not Found
npm: 5.7.1
Watchman: Not Found
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.51.0 => 0.51.0
Steps to Reproduce
Request a calendar event list on Android 4.1.2 version devices
Expected Behavior
Get a list of events
Actual Behavior
Native crash, see above
The text was updated successfully, but these errors were encountered: