Caused by: java.lang.NumberFormatException: Invalid double: “” with blank value

六月ゝ 毕业季﹏ 提交于 2019-12-02 10:05:21

Change the type of image_width and image_height to String in MyData Class

public String image_width;

public String image_height;

As int will not be able to store "" this string, and at the time of using it you can parse it into int.

public int image_width;     // Expected integer value while parsing 

public int image_height;   // Expected integer value while parsing

as you can see below you are having string fields . Initialize below vale to 0

"image_width":0,
"image_height":0
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!