2011-04-16 21 views
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> 

有誰知道這個問題可能是什麼?

感謝您的幫助

回答

2

您可以使用表達式視圖(如果你的Eclipse IDE,或任何其他手錶)獲得的這種狀態/任何變量,當這個錯誤發生。對於某些人來說,我不知道這個原因,Eclipse在嘗試使用光標顯示變量時有時會顯示此錯誤...

+0

事實證明,我的問題與錯誤無關,而且我修復了它。我想只是碰巧Eclipse不能向我展示基於xml文件的變量的內容。無論如何,感謝提示。 – f20k 2011-04-16 21:36:07

相關問題