<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 0, 文章 - 264, 評(píng)論 - 170, 引用 - 0
    數(shù)據(jù)加載中……

    android.content.res.Resources$NotFoundException:String resource ID #0x86

    今天跑程序的時(shí)候,出現(xiàn)這樣的錯(cuò)誤:
    android.content.res.Resources$NotFoundException:String resource ID #0x86

    LogCat顯示出錯(cuò)行是:
    if (bet.getStatus() != null) {
                holder.statusView.setText(bet.getStatus());
    }

    開始的時(shí)候,死活找不出原因。
    后來發(fā)現(xiàn)錯(cuò)誤原因是:
               bet.getStatus()返回的是Integer類型,轉(zhuǎn)成String類型,即可,如下:          
               holder.statusView.setText("" + bet.getStatus());

    posted on 2011-08-03 13:42 小一敗涂地 閱讀(36133) 評(píng)論(21)  編輯  收藏 所屬分類: android+移動(dòng)開發(fā)

    評(píng)論

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    終于讓我找到答案 osz
    2012-09-02 17:48 | xpp

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    就是啊 這錯(cuò)誤提示都不知道從哪下手,折騰我半天了,謝謝樓主了
    2012-10-13 00:42 | 。。。

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    感謝lz啊,不然我睡不著了..
    2012-11-20 02:42 | idd

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    感謝樓主啊
    2013-01-07 11:41 | 得到

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    真于找到答案了,多謝樓主!
    2013-01-25 14:52 | fb

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86[未登錄]  回復(fù)  更多評(píng)論   

    萬分感謝樓主 啊
    2013-02-01 17:35 | ls

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86[未登錄]  回復(fù)  更多評(píng)論   

    萬分感謝樓主 啊
    2013-04-16 22:11 | Ken

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86[未登錄]  回復(fù)  更多評(píng)論   

    感謝樓主
    2013-05-03 15:20 | helloword

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    我擦,竟然是這么簡(jiǎn)單的解決方法,想了我老半天,原來是類型錯(cuò)誤
    2013-07-05 14:45 | Android小飛魚

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    非常感覺樓主~ 不然還真要花多少時(shí)間去找個(gè)錯(cuò)誤~!
    2013-07-12 14:18 | sherard

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86[未登錄]  回復(fù)  更多評(píng)論   

    thank you!
    2013-09-17 11:15 | deng

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    太感謝了,我找了一個(gè)小時(shí)都沒找到原因
    2013-09-29 10:24 | dff

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    終于讓我找到你了樓主,感覺安卓都是這種問題,一小時(shí)一小時(shí)往外扔,多虧有了樓主,我從一個(gè)小時(shí)變成了30秒,真是神了!
    2013-10-15 21:14 | 膜拜啊

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86[未登錄]  回復(fù)  更多評(píng)論   

    thank you
    2014-02-13 14:12 | pan

    # 12312[未登錄]  回復(fù)  更多評(píng)論   

    123213123123
    2014-07-08 11:36 | 123

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    謝謝樓主,半天是這個(gè)問題
    2014-07-24 15:30 | hanxuexue

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86[未登錄]  回復(fù)  更多評(píng)論   

    原來如此...
    2014-12-29 16:38 | richard

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    感謝樓主。終于明白這是因?yàn)?TextView的setText(Charsequence str) 有重載setText(int resourseId), 傳入一個(gè)整數(shù)必須就調(diào)用重載,必須轉(zhuǎn)換成string才行
    2015-02-28 14:03 | 何世威

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86[未登錄]  回復(fù)  更多評(píng)論   

    謝謝樓主
    2015-04-27 10:35 | jh

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86[未登錄]  回復(fù)  更多評(píng)論   

    自認(rèn)為學(xué)的不錯(cuò)了,居然被這種問題搞了個(gè)把小時(shí),自己太自以為是了
    2015-05-21 14:32 | sunny

    # re: android.content.res.Resources$NotFoundException:String resource ID #0x86  回復(fù)  更多評(píng)論   

    非常感謝樓主,幫大忙了
    2015-12-09 10:01 |
    主站蜘蛛池模板: 亚洲精品国产综合久久久久紧| 国产AV无码专区亚洲Av| 91亚洲精品麻豆| 美女内射无套日韩免费播放| 亚洲精品夜夜夜妓女网| 日本高清不卡aⅴ免费网站| 国产aⅴ无码专区亚洲av麻豆| 国产免费人成视频尤勿视频| 国产成人毛片亚洲精品| www.xxxx.com日本免费| 亚洲国产日韩在线视频| 99视频在线看观免费| 亚洲区视频在线观看| 成人毛片18女人毛片免费| 亚洲国产高清国产拍精品| 亚洲av无码不卡私人影院| 三级毛片在线免费观看| 亚洲人成网址在线观看| 69堂人成无码免费视频果冻传媒| 在线亚洲午夜片AV大片| 凹凸精品视频分类国产品免费| 亚洲精品黄色视频在线观看免费资源 | a级精品九九九大片免费看| 亚洲AV永久青草无码精品| 18国产精品白浆在线观看免费| 亚洲色中文字幕在线播放| 午夜亚洲福利在线老司机| 免费在线看污视频| 亚洲人成77777在线观看网| 亚洲黄片毛片在线观看| 性xxxx视频免费播放直播| 亚洲人成网站色7799| 亚洲国产精品自在拍在线播放| 花蝴蝶免费视频在线观看高清版 | 中文字幕成人免费视频| 亚洲综合色婷婷在线观看| 久久久久亚洲精品男人的天堂| 2019中文字幕免费电影在线播放| 亚洲精华液一二三产区| 亚洲Aⅴ无码专区在线观看q| 最新中文字幕免费视频|