我在以下代码中遇到错误:
xmldata = mContext.getResources().getStringArray(R.array.map1);
for(int y = 0; y < 15; y++){
st = new StringTokenizer(xmldata[y], ", "); // error here <<<
// some other stuff
}当我在xmldata上使用调试器时,我在Eclipse上得到这个错误:
'JDI thread evaluations' has encountered a problem.
Exception processing async thread queue.详细信息:
Exception processing async thread queue
Exception processing async thread queue
java.lang.UnsupportedOperationExceptionxml文件本身:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="map1X">13</integer>
<integer name="map1Y">7</integer>
<string-array name="map1">
<item>0,0,0,0,0,0,0,0,0,0,0,0,0</item>
<item>0,0,0,0,0,0,0,0,0,0,0,0,0</item>
<item>0,0,0,0,0,0,0,0,0,0,2,2,2</item>
<item>0,0,0,0,0,0,0,0,2,2,2,2,2</item>
<item>0,0,0,0,0,0,2,2,2,2,2,2,2</item>
<item>0,0,0,0,0,0,0,0,0,0,0,0,0</item>
<item>1,1,1,1,1,1,1,1,1,1,1,1,1</item>
</string-array>
</resources>有人知道问题出在哪里吗?
谢谢你的帮忙
发布于 2011-04-17 05:13:26
当发生此错误时,您可以使用表达式视图(如果您是Eclipse IDE或任何其他Watch)来获取此变量/任何变量的状态。出于某些未知的原因,Eclipse有时会在尝试使用游标显示变量时显示此错误...
https://stackoverflow.com/questions/5689490
复制相似问题