lundi 4 avril 2016

SQLite CREATE TABLE errors

I am following video tutorials on youtube (these videos, from 8-11 https://www.youtube.com/watch?v=xKuM3cHO7G8&index=9&list=PL_PaSTBkUwk4PXlhZIe4COpwnWeCRnw2F ) to create a database in SQLite in Android Studio for one of my activities of an application for a school project.

However, when I run this application, when I attempt to navigate to this activity with the database, I get an error in the logcat. I cannot find a solution to this.

How would I resolve this? My application was working perfectly until then and it's frustrating as it's due in next week.

Here is the GitHub link to my application, and within README.MD, I have provided the entire error that logcat gives me.

http://ift.tt/200Op1t

Edit: this is the 'caused by' part of the error.

Caused by: android.database.sqlite.SQLiteException: duplicate column name: address (code 1): , while compiling: CREATE TABLE contacts(id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT,phone TEXT,email TEXT,address TEXT,address TEXTimageUriTEXT)

Aucun commentaire:

Enregistrer un commentaire