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

前端 未结 7 883
清酒与你
清酒与你 2020-11-21 08:18

I\'m developing an Android app which reads data from MySQL database and I faced this error. I have this XML layout:



        
7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-21 08:32

    The evaluated value for settext was integer so it went to see a resource attached to it but it was not found, you wanted to set text so it should be string so convert integer into string by attaching .toStringe or String.valueOf(int) will solve your problem!

提交回复
热议问题