我试图找到一张表,我试试这样的所有细节 -
ParseQuery<ParseObject> query2 = ParseQuery.getQuery("ProfileData");
query2.findInBackground(new FindCallback<ParseObject>() {
@Override
public void done(List<ParseObject> profileList, ParseException e) {
if (e == null) {
if (profileList.size() > 0) {
for (int i = 0; i < profileList.size(); i++) {
ParseObject p = profileList.get(i);
Log.d("ParseQuery", "objectId: " + p.getString("objectId"));
}
}
} else {
Log.d("score", "Error: " + e.getMessage());
}
}
});
但我得到了
错误:i / o失败
表格如下 -
View service 我做错了吗?
在收到此错误之前,我正在显示此日志显示的日志。可能它有一些线索。 添加完整日志: -
01-03 12:51:02.441 32042-32042/com.android.googlemapwithtab D/libEGL: loaded /system/lib/egl/libEGL_adreno200.so
01-03 12:51:02.491 32042-32042/com.android.googlemapwithtab D/libEGL: loaded /system/lib/egl/libGLESv1_CM_adreno200.so
01-03 12:51:02.501 32042-32042/com.android.googlemapwithtab D/libEGL: loaded /system/lib/egl/libGLESv2_adreno200.so
01-03 12:51:02.501 32042-32042/com.android.googlemapwithtab I/Adreno200-EGL: <qeglDrvAPI_eglInitialize:299>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_REL_RB1.04.01.01.06.041_msm8660_surf_JB_REL_RB1.2_Merge_release_AU (Merge)
Build Date: 11/05/12 Mon
Local Branch: mybranch425650
Remote Branch: quic/jb_rel_rb1.2
Local Patches: NONE
Reconstruct Branch: AU_LINUX_ANDROID_JB_REL_RB1.04.01.01.06.041 + NOTHING
01-03 12:51:02.741 32042-32042/com.android.googlemapwithtab D/OpenGLRenderer: Enabling debug mode 0
01-03 12:51:02.972 32042-32042/com.android.googlemapwithtab I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.internal.widget.ResourcesWrapper.getDrawable
01-03 12:51:02.972 32042-32042/com.android.googlemapwithtab W/dalvikvm: VFY: unable to resolve virtual method 523: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
01-03 12:51:02.972 32042-32042/com.android.googlemapwithtab D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
01-03 12:51:02.972 32042-32042/com.android.googlemapwithtab I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.internal.widget.ResourcesWrapper.getDrawableForDensity
01-03 12:51:02.972 32042-32042/com.android.googlemapwithtab W/dalvikvm: VFY: unable to resolve virtual method 525: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
01-03 12:51:02.972 32042-32042/com.android.googlemapwithtab D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
01-03 12:51:02.982 32042-32046/com.android.googlemapwithtab D/dalvikvm: GC_CONCURRENT freed 4558K, 28% free 14380K/19843K, paused 38ms+49ms, total 172ms
01-03 12:51:03.302 32042-32042/com.android.googlemapwithtab I/Choreographer: Skipped 30 frames! The application may be doing too much work on its main thread.
01-03 12:51:06.065 32042-32046/com.android.googlemapwithtab D/dalvikvm: GC_CONCURRENT freed 4499K, 25% free 16899K/22407K, paused 41ms+16ms, total 164ms
01-03 12:51:30.929 32042-32042/com.android.googlemapwithtab D/score: Error: i/o failure
答案 0 :(得分:0)
1)在继续之前,只需从parse.com检查您的表名密钥名称是否正确。
2)使用try {} catch(Throwable t){}包围代码,以避免任何异常停止您的应用。
3)只需尝试调试即可找到确切的问题并提供更多细节。因此,您可以获得更好的解决方案。
4)首选android studio进行更好的调试。
答案 1 :(得分:0)