ihrthk Boss直聘 Android开发工程师  2012年12月22日
android 真机数据库出错?
12-22 05:58:58.330: D/Debug SQL(1216): >>>>>> insert or ignore into t_agenda_guest (id,agendaId,guestId) values (null,'25','2279')
12-22 05:58:58.330: I/Database(1216): sqlite returned: error code = 1, msg = no such table: main.t_guestId
12-22 05:58:58.340: E/Database(1216): Failure 1 (no such table: main.t_guestId) on 0xeea80 when preparing 'insert or ignore into t_agenda_guest (id,agendaId,guestId) values (null,'25','2279')'.
12-22 05:58:58.340: W/dalvikvm(1216): threadid=9: thread exiting with uncaught exception (group=0x40018560)
12-22 05:58:58.340: E/AndroidRuntime(1216): FATAL EXCEPTION: Thread-12
12-22 05:58:58.340: E/AndroidRuntime(1216): android.database.sqlite.SQLiteException: no such table: main.t_guestId: insert or ignore into t_agenda_guest (id,agendaId,guestId) values (null,'25','2279')
12-22 05:58:58.340: E/AndroidRuntime(1216): at android.database.sqlite.SQLiteDatabase.native_execSQL(Native Method)

模拟器运行正常,真机出错,log如上,我纳闷是这句no such table: main.t_guestId,我插入的表明明是t_agenda_guest,怎么显示没有这个表main.t_guestId呢?
...全文
82 点赞 收藏 1
写回复
1 条回复

还没有回复,快来抢沙发~

发动态
发帖子
Android
创建于2009-10-09

4.6w+

社区成员

9.0w+

社区内容

移动平台 Android
社区公告
暂无公告