SQLiteConstraintException:错误代码19:约束失败

当我在我的SQLite数据库中插入时遇到了这个exception

下面的代码给我例外:

mDbHelper.createUser("pablo","a","a","a","a"); 

来自mDbHelper(MyDbAdapter)的代码:

 private static final String USER_TABLE_CREATE = "CREATE TABLE user ( email varchar, password varchar, fullName varchar, mobilePhone varchar, mobileOperatingSystem varchar, PRIMARY KEY (email))"; public long createUser(String email, String password, String fullName, String mobilePhone, String mobileOperatingSystem) { ContentValues initialValues = new ContentValues(); initialValues.put("email",email); initialValues.put("password",password); initialValues.put("fullName",fullName); initialValues.put("mobilePhone",mobilePhone); initialValues.put("mobileOperatingSystem",mobileOperatingSystem); return mDb.insert("user", null, initialValues); } 

在最后一行创buildexception: return mDb.insert("user", null, initialValues);

Solutions Collecting From Web of "SQLiteConstraintException:错误代码19:约束失败"