当前位置:网站首页>Org.json Jsonexception: what about no value for value
Org.json Jsonexception: what about no value for value
2022-07-24 22:32:00 【TMS320VC5257H】
Use android studio To write APP Analyze the information returned from Alibaba cloud's Internet of things platform .

Sometimes I meet org.json.JSONException: No value for Value Error messages for
Where to look at this information ?
It's from android studio Of logcat Window view , When debugging, there will be a prompt in this window .

The solution is : Go to the Internet of things platform to check the equipment to be debugged , Whether the material model has data . If there is no data , Then let the device go online , Then send an attribute data . Or use the device simulator to report a data . Run it again android studio, You can find that the problem is eliminated .

The reason for this problem is that the returned data is empty .
If your device defines many attributes , And when parsing , Parse each attribute , Then there is an attribute that has no value , Will be null , And think it's wrong .
So this time may report org.json.JSONException: No value for XX abnormal .
边栏推荐
- Push information to wechat through enterprise wechat self built application
- Website resources
- CAD break command
- VScode默认输出到调试控制台如何调整到终端以及两者中的乱码问题
- PCL点云处理之随机采样抽稀RandomSample(六十)
- WPF uses pathgeometry to draw the hour hand and minute hand
- What are the methods of knowledge map relation extraction
- Which is the best interface documentation tool at home and abroad?
- DDoS attack classification
- Database - Metadata databasemetadata beginner
猜你喜欢
随机推荐
对萌新小白电脑运行速度变慢解决的方法get!٩( ‘ω‘ )و get!٩( ‘ω‘ )و
The accuracy of float
IndexTree
窗口内最大值或最小值的更新结构——窗口内最大值
一种兼容、更小、易用的WEB字体API
Visual studio input! No prompt
How to refine the top products of the website in the top 10 of the list for three consecutive months?
ODBC executes stored procedure to get return value
Implementation of graph structure, from point to edge and then to graph
PCL点云处理之找到直线点集的两个端点(五十七)
【数据库学习】Redis 解析器&&单线程&&模型
Implement redis sentinel to simulate master failure scenarios
From A76 to A78 -- learning arm microarchitecture in change
《JUC并发编程 - 高级篇》05 -共享模型之无锁 (CAS | 原子整数 | 原子引用 | 原子数组 | 字段更新器 | 原子累加器 | Unsafe类 )
通过企业微信自建应用向微信推送信息
单调栈结构
PCL点云处理之随机采样抽稀RandomSample(六十)
暴力递归——N皇后详解 && 如何用位运算进行优化
Enterprise operation we media can't "self Hi": the content should be grounded, not advertising
GlideModule AppGlideModule和Generated API详解
![[Apipost和Apifox哪个更好用?看这篇就够了!]](/img/58/4dfe5c56d12e8e88b0a7f3583ff0a4.jpg)







