今天准备在安卓创建一个数据库,语句如下
可是死活都会有一个错误
SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(databaseFile, null);
可是死活都会有一个错误
02-27 22:28:37.149 11221-11221/io.wicp.namespacewjx.salarycalculator E/SQLiteLog: (14) cannot open file at line 30191 of [00bb9c9ce4]
02-27 22:28:37.149 11221-11221/io.wicp.namespacewjx.salarycalculator E/SQLiteLog: (14) os_unix.c:30191: (21) open(/data/data/io.wicp.namespacewjx.salarycalculator/databases/salary database.db3) -
02-27 22:28:37.159 11221-11221/io.wicp.namespacewjx.salarycalculator E/SQLiteDatabase: Failed to open database '/data/data/io.wicp.namespacewjx.salarycalculator/databases/salary database.db3'.
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:209)