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

前端 未结 7 1018
清酒与你
清酒与你 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:33

    When you try to set text in Edittext or textview you should pass only String format.

    dateTime.setText(app.getTotalDl());
    

    to

    dateTime.setText(String.valueOf(app.getTotalDl()));
    

提交回复
热议问题