这是错误代码:
09-27 11:56:01.425: WARN/System.err(10324): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed
09-27 11:56:01.435: WARN/System.err(10324): at android.database.sqlite.SQLiteStatement.native_execute(Native Method)
09-27 11:56:01.435: WARN/System.err(10324): at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:61)
09-27 11:56:01.435: WARN/System.err(10324): at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1809)
09-27 11:56:01.435: WARN/System.err(10324): at de.enough.appmate.dbase.CMSResource.updateItem(CMSResource.java:1103)
09-27 11:56:01.435: WARN/System.err(10324): at de.enough.appmate.dbase.CMSResourceUpdater.updateItems(CMSResourceUpdater.java:178)
09-27 11:56:01.435: WARN/System.err(10324): at de.enough.appmate.dbase.CMSResourceUpdater.loadUpdates(CMSResourceUpdater.java:102)
09-27 11:56:01.435: WARN/System.err(10324): at de.enough.appmate.dbase.CMSResourceUpdaterRunnable.run(CMSResourceUpdaterRunnable.java:32)
09-27 11:56:01.435: WARN/System.err(10324): at java.lang.Thread.run(Thread.java:1019)
Run Code Online (Sandbox Code Playgroud)
这是使用的方法
this.db.execSQL("INSERT INTO itemGalleryItems (id, imageCaption, imageUrl,itemID,orderIndex,displayInGallery) VALUES (?,?,?,?,?,?); ",
bindArgs);
Run Code Online (Sandbox Code Playgroud)
binArgs看起来像:
String[] bindArgs = {
(String) imageItem.get("id"),
(String) imageItem.get("imageCaption"),
(String) imageItem.get("imageName"),
(String) item.get("id"),
(String) imageItem.get("orderIndex"),
(String) imageItem.get("displayInGallery")};
Run Code Online (Sandbox Code Playgroud)
希望有人能提供帮助 …
我创建了一个Windows Phone 7应用程序并想要调试它(F5).但是当我按下F5时,我得到的错误是:
The application could not be launched for debugging.
Ensure that the target device screen is unlocked
and that the application is installed.
Run Code Online (Sandbox Code Playgroud)
我不知道为什么会出现这种失败.
希望有人有个主意.我使用Visual Studio 2010 Premium.
Thanx newone