【发布时间】:2011-08-07 01:33:27
【问题描述】:
这段代码有错误:
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.UnsupportedOperationException
xml文件本身:
<?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>
有谁知道可能是什么问题?
感谢您的帮助
【问题讨论】: