android.content.res.Resources$NotFoundException: String resource ID #0x0 找不到資源文件ID #0x6
原因:
這種情況就是在控件的setText()方法或者Toast.makeText()中傳遞的int類型數(shù)據(jù),系統(tǒng)會尋找資源文件 但你給定的int類型數(shù)據(jù)不是ID 所以出錯盖文。因此你給它String類型就OK了废士。
android.content.res.Resources$NotFoundException: String resource ID #0x0 找不到資源文件ID #0x6
原因:
這種情況就是在控件的setText()方法或者Toast.makeText()中傳遞的int類型數(shù)據(jù),系統(tǒng)會尋找資源文件 但你給定的int類型數(shù)據(jù)不是ID 所以出錯盖文。因此你給它String類型就OK了废士。