Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1122925
  • 博文数量: 241
  • 博客积分: 4385
  • 博客等级: 上校
  • 技术积分: 2383
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-07 23:13
文章分类

全部博文(241)

文章存档

2013年(1)

2012年(8)

2011年(62)

2010年(109)

2009年(61)

分类: 嵌入式

2010-07-28 13:56:54

1:起因:数据库关键字命名使用了select,导致错误

启示:数据库命名一定不能使用关键字

2:起因:Cursor从数据库读出数据后,需要如下循环读取Cursor的数据,未先moveToFirst()导致错误

while(!cur.isAfterLast())

{

    //

    cur.moveToNext();

}

3:起因:sql语句缺少空格,导致错误

启示:sql语句里面的空格很容易被忽略

4:起因:包含了android.R,导致工程的R文件里面的元素不能被识别

5:“Unparsed aapt error(s)! Check the console for output",project-

>clean下即可

6:起因:The connection to adb is down, and a severe error has occured.
       You must restart adb and Eclipse.

解决:adb kill-server -> adb start-server -> restart eclipse

阅读(947) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~