lundi 2 mai 2016

cannot run program it says unrecognized token and crashes

this is the code its talking about

private static final String REST = "CREATE TABLE " +MENU_COLUMNS +"(" + FOOD_NAME +" TEXT , "+ CARBS +" TEXT, " + SERVING + " TEXT)";

and this is the error code

java.lang.RuntimeException: Unable to get provider   com.example.diabeticdiner.LocationProvider: android.database.sqlite.SQLiteException: unrecognized token: "[Ljava.lang.String;@75ed766(Food_name TEXT PRIMARY KEY, Carbs TEXT, Serving TEXT)" (code 1): , while compiling: CREATE TABLE [Ljava.lang.String;@75ed766(Food_name TEXT PRIMARY KEY, Carbs TEXT, Serving TEXT)

Aucun commentaire:

Enregistrer un commentaire