<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 |
    主站蜘蛛池模板: 久久久久久A亚洲欧洲AV冫| v片免费在线观看| 成人免费视频试看120秒| 亚洲国产精品综合一区在线| 2019中文字幕免费电影在线播放 | 91视频免费网站| 亚洲精品午夜国产VA久久成人| xvideos永久免费入口| 国产成人99久久亚洲综合精品| 人体大胆做受免费视频| va亚洲va日韩不卡在线观看| 一区二区三区在线免费观看视频| 国产精品亚洲mnbav网站| 中国一级特黄高清免费的大片中国一级黄色片 | 亚洲av无码专区国产乱码在线观看 | 亚洲 无码 在线 专区| 免费毛片毛片网址| 亚洲伊人久久综合中文成人网| 国产高潮流白浆喷水免费A片 | 亚洲精品无码永久中文字幕| 久9久9精品免费观看| 亚洲欧洲日产国码二区首页| 免费无码又黄又爽又刺激| 亚洲高清国产拍精品熟女| 免费在线精品视频| 国产一级黄片儿免费看| 亚洲va在线va天堂va四虎 | 大妹子影视剧在线观看全集免费| 亚洲精品美女久久777777| 久久国产乱子免费精品| 亚洲日本香蕉视频| 成人人免费夜夜视频观看| 国产成人精品亚洲一区| 久久久精品国产亚洲成人满18免费网站| 国产一级高青免费| 亚洲色欲www综合网| 扒开双腿猛进入爽爽免费视频 | 亚洲精品日韩一区二区小说| 亚洲成a人一区二区三区| 中文成人久久久久影院免费观看 | 国产亚洲精品影视在线|