0
:Android的 - 「JDI線程評估」遇到我有這個代碼中的錯誤問題
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>
有誰知道這個問題可能是什麼?
感謝您的幫助
事實證明,我的問題與錯誤無關,而且我修復了它。我想只是碰巧Eclipse不能向我展示基於xml文件的變量的內容。無論如何,感謝提示。 – f20k 2011-04-16 21:36:07