2012-11-23 98 views
0

我調試這個功能:源未找到調試Android的日食

public int colorIntWithAlpha(int color){ 
    String colorStr; 
    colorStr=Integer.toHexString(color); 
    char[] strChar=colorStr.toCharArray(); 
    colorStr=String.valueOf(strChar,0,6); 
    colorStr+="FF"; 
    return Integer.decode(colorStr); 
} 

而當它到達colorStr=Integer.toHexString(color);我得到一個消息:

Class File Editor 
Source not found 
+1

[在Eclipse中將Java Source附加到Android項目](http ://stackoverflow.com/questions/3182904/attaching-java-source-to-android-projects-in-eclipse) – Mogsdad

回答

0

的問題是,你正在試圖展示Java JDK函數的源代碼,而Eclipse沒有找到它。如果您想在調試時進入Android SDK功能(現在可以使用Android SDK管理器下載Android源代碼,請選擇this postthis one)。