Bank error can not save data in table

0

To make a video lesson to save data in the bank, I've done 3 different tutorials always from the error, follow below the Logcat in info.

05-29 14: 02: 57.894 22842-22842 / com.roma0x.mycash E / SQLiteLog: (1) no such table: added 05-29 14: 02: 57,896 22842-22842 / com.roma0x.mycash E / SQLiteDatabase: Error inserting name = Test                                                                    android.database.sqlite.SQLiteException: no such table: added (code 1):, while compiling: INSERT INTO added (name) VALUES (?)                                                                        at android.database.sqlite.SQLiteConnection.nativePrepareStatement (Native Method)                                                                        at android.database.sqlite.SQLiteConnection.acquirePreparedStatement (SQLiteConnection.java:889)                                                                        at android.database.sqlite.SQLiteConnection.prepare (SQLiteConnection.java:500)                                                                        at android.database.sqlite.SQLiteSession.prepare (SQLiteSession.java:588)                                                                        at android.database.sqlite.SQLiteProgram. (SQLiteProgram.java:58)                                                                        at android.database.sqlite.SQLiteStatement (SQLiteStatement.java:31)                                                                        at android.database.sqlite.SQLiteDatabase.insertWithOnConflict (SQLiteDatabase.java:1472)                                                                        at android.database.sqlite.SQLiteDatabase.insert (SQLiteDatabase.java:1343)                                                                        at com.roma0x.mycash.Activity.AddActivity.onCreate (AddActivity.java:69)                                                                        at android.app.Activity.performCreate (Activity.java:6760)                                                                        at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1119)                                                                        at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2618)                                                                        at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2726)                                                                        at android.app.ActivityThread.-wrap12 (ActivityThread.java)                                                                        at android.app.ActivityThread $ H.handleMessage (ActivityThread.java:1477)                                                                        at android.os.Handler.dispatchMessage (Handler.java:102)                                                                        at android.os.Looper.loop (Looper.java:159)                                                                        at android.app.ActivityThread.main (ActivityThread.java:6139)                                                                        at java.lang.reflect.Method.invoke (Native Method)                                                                        at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:886)                                                                        at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:776)

    
asked by anonymous 29.05.2018 / 20:05

1 answer

0

The problem is that the system is not finding the table added

"Ah, but I put this table, yes, it's there!"

Ok, so you have two options to solve,

First:

Upload the version of your local bank, if it is in version 1, go up to 2, if it is in 2, go up to 3 and so on

Second:

Uninstall the device application before compiling again, doing so the current database will be removed, and when you compile, only the new one will be installed, ignoring the old one.

I hope I have helped!

    
29.05.2018 / 20:08