Android 请求logcat错误索引-1,大小为24

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

我在运行使用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.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)

此错误是什么意思?

您的
光标未定位在有效行上。使用
moveToFirst()
或其他
move…()
方法之一将
光标定位到要读取的行上