赞
踩
最近做的一个项目需要适配android 2.3.3平台,在项目导入阶段遇到一个数据库的问题,在此记录下问点log和初步解决方案。
看log
I/Database( 1135): sqlite returned: error code = 14, msg = cannot open file at source line 25467
E/Database( 1135): sqlite3_open_v2("/data/data/com.xxx.bluetooth/databases/bt_contact.db", &handle, 6, NULL) failed
D/AndroidRuntime( 1135): Shutting down VM
W/dalvikvm( 1135): threadid=1: thread exiting with uncaught exception (group=0x40139560)
E/AndroidRuntime( 1135): FATAL EXCEPTION: main
E/AndroidRuntime( 1135): android.database.sqlite.SQLiteException: unable to open database file
E/AndroidRuntime( 1135): at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
E/AndroidRuntime( 1135): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。