且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在日历中添加提醒时android.database.sqlite.SQLiteException

更新时间:2022-11-27 16:48:24


更新:我发现此错误可能在两种情况下发生。

Update: I found that this error can be occurred with in two conditions.




  1. 如果您未在
    手机中配置Google日历应用/ emulator将发生此错误。然后,请确保在运行应用程序之前,使用gmail帐户配置Google日历应用程序。

  1. If you didn't config your google calendar app in your phone/emulator this error will occur. Then make sure that you configure the google calendar app with a gmail account before running the app.

如果您给事件传递了格式错误或错误的时间,或者提醒。使用具有正确时区的Unix时间。

If you are passing wrong formatted or false time to the event or reminder. use unix time with correct time zone.