<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)論   

    我擦,竟然是這么簡單的解決方法,想了我老半天,原來是類型錯(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 |
    主站蜘蛛池模板: 免费黄色大片网站| 30岁的女人韩剧免费观看| 毛片在线看免费版| 亚洲人成7777| 欧美大尺寸SUV免费| 2017亚洲男人天堂一| 在线a毛片免费视频观看| jizzjizz亚洲日本少妇| www.亚洲精品.com| 成人免费网站视频www| 亚洲中文字幕无码日韩| 国产永久免费高清在线| 亚洲国产精品线在线观看| 久草视频在线免费| 亚洲欧美自偷自拍另类视| 国产18禁黄网站免费观看| 中文字幕免费在线看电影大全| 国产亚洲AV手机在线观看| 亚洲精品免费观看| 亚洲不卡中文字幕| 免费人成在线观看播放国产| 国产一级婬片A视频免费观看| 日韩亚洲AV无码一区二区不卡 | 91精品国产免费久久国语蜜臀 | 亚洲精品国产成人专区| 国产成人免费午夜在线观看 | 中国内地毛片免费高清| 亚洲AV人无码综合在线观看| 欧洲乱码伦视频免费| 国产亚洲日韩在线a不卡| 亚洲VA中文字幕不卡无码| 永久免费AV无码国产网站| 亚欧国产一级在线免费| 4444亚洲国产成人精品| 成人永久免费高清| 久久久久免费精品国产| 中国china体内裑精亚洲日本| 久久久青草青青国产亚洲免观 | 亚洲A∨午夜成人片精品网站| 久久免费观看国产99精品| 亚洲成在人线aⅴ免费毛片|