Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLiteDatabase: Error #13

Open
xybCoder opened this issue Aug 10, 2017 · 1 comment
Open

SQLiteDatabase: Error #13

xybCoder opened this issue Aug 10, 2017 · 1 comment

Comments

@xybCoder
Copy link

SQLiteDatabase: Error inserting row=4 item_padding=30 horizontal_spacing=0 is_show_del_btn=0 name=sme line=2 icon_uri=assets://emoticons/sme/wg_tab.png vertical_spacing=0 is_show_name=true
android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: emoticonset.name (code 2067)
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:782)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1471)
at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1341)
at cn.hadcn.keyboard.emoticon.db.EmoticonDBHelper.insertEmoticonSet(EmoticonDBHelper.java:105)
at cn.hadcn.keyboard.ChatKeyboardLayout$5.run(ChatKeyboardLayout.java:704)
at java.lang.Thread.run(Thread.java:818)

@CPPAlien
Copy link
Owner

Do you use the ChatKeyboardLayout.isEmoticonInitSuccess(this) before use init emoticon. This version of the lib, you can only init emoticon content for once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants