<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 |
    主站蜘蛛池模板: 亚洲天堂福利视频| 久久久久国色AV免费看图片| 国产亚洲精久久久久久无码77777| 粉色视频在线观看www免费| 免费人成网站在线播放| 免费一级全黄少妇性色生活片| 免费国产怡红院在线观看| 污网站在线观看免费| 亚洲?v无码国产在丝袜线观看| 无码AV动漫精品一区二区免费| 美腿丝袜亚洲综合| 中文在线免费看视频| 亚洲国产成人精品无码区在线观看| 丁香花在线视频观看免费| 国产亚洲真人做受在线观看| 国产真人无码作爱视频免费| 亚洲Av熟妇高潮30p| 最近2018中文字幕免费视频 | 日韩免费无砖专区2020狼| 亚洲精品日韩一区二区小说| 国产精品va无码免费麻豆| 色多多免费视频观看区一区| 国产亚洲?V无码?V男人的天堂| a级片免费在线播放| 久久综合亚洲色一区二区三区| 99视频全部免费精品全部四虎| 亚洲人成人网毛片在线播放| 免费特级黄毛片在线成人观看 | 成人免费观看一区二区| 亚洲欧洲专线一区| 亚洲AV无码专区日韩| 中文日本免费高清| 18gay台湾男同亚洲男同| 成人免费看黄20分钟| 思思久久99热免费精品6| 亚洲色婷婷综合久久| 91老湿机福利免费体验| 亚洲精品第一国产综合野| 免费人成在线观看播放国产 | 男男AV纯肉无码免费播放无码| 亚洲av无码成人影院一区|