Autore Topic: cannot open file  (Letto 446 volte)

Offline astro87

  • Nuovo arrivato
  • *
  • Post: 21
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    motorola moto g
  • Sistema operativo:
    windows 7
cannot open file
« il: 16 Ottobre 2014, 11:23:57 CEST »
0
Salve ho un problema con il database sqlite. Lo stesso progetto ( stesso database) su una macchina mi funziona bene mentre sull'altra mi da il seguente errore:
Codice (Java): [Seleziona]
10-16 05:20:54.125: E/SQLiteLog(1899): (14) cannot open file at line 30191 of [00bb9c9ce4]
10-16 05:20:54.125: E/SQLiteLog(1899): (14) os_unix.c:30191: (2) open(/data/data/com.example.ortoprog2/databases/ortodb) -
10-16 05:20:54.145: E/SQLiteDatabase(1899): Failed to open database '/data/data/com.example.ortoprog2/databases/ortodb'.
10-16 05:20:54.145: E/SQLiteDatabase(1899): android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:209)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:804)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:789)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:669)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at com.example.ortoprog2.MySQLiteHelper.checkDataBase(MySQLiteHelper.java:106)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at com.example.ortoprog2.MySQLiteHelper.createDataBase(MySQLiteHelper.java:73)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at com.example.ortoprog2.DbManager.<init>(DbManager.java:46)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at com.example.ortoprog2.Gridview_fragmentprodotti.getProdotti(Gridview_fragmentprodotti.java:100)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at com.example.ortoprog2.Gridview_fragmentprodotti.onCreateView(Gridview_fragmentprodotti.java:63)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.support.v4.app.Fragment.performCreateView(Fragment.java:1504)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:942)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1121)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1484)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:571)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.app.Activity.performStart(Activity.java:5241)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2168)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.app.ActivityThread.access$800(ActivityThread.java:135)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.os.Handler.dispatchMessage(Handler.java:102)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.os.Looper.loop(Looper.java:136)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at android.app.ActivityThread.main(ActivityThread.java:5017)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at java.lang.reflect.Method.invokeNative(Native Method)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at java.lang.reflect.Method.invoke(Method.java:515)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
10-16 05:20:54.145: E/SQLiteDatabase(1899):     at dalvik.system.NativeStart.main(Native Method)

Può essere un problema di sdk?