Android 请求logcat错误索引-1,大小为24
我在运行使用SqliteAsselPer库的项目时遇到此错误:Android 请求logcat错误索引-1,大小为24,android,database,android-logcat,Android,Database,Android Logcat,我在运行使用SqliteAsselPer库的项目时遇到此错误: FATAL EXCEPTION: main android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 24 at android.database.AbstractCursor.checkPosition(AbstractCursor.java:424) at android.database.AbstractWindow
FATAL EXCEPTION: main
android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 24
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:424)
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)
此错误是什么意思?您的
光标未定位在有效行上。使用moveToFirst()
或其他move…()
方法之一将光标定位到要读取的行上