收藏官网首页
查看: 23663|回复: 4

[问答] Android 集成最新sdk后偶现闪退

6

主题

15

帖子

131

积分

注册会员

Rank: 2

积分
131
跳转到指定楼层
楼主
发表于 2016-10-26 16:44:39 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
免费使用STM32、APP自动代码生成工具
1,当app在无操作时偶现闪退2,log日志如图所示:

QQ截图20161026164153.png (57.14 KB, 下载次数: 1124)

QQ截图20161026164153.png

92

主题

277

帖子

1305

积分

金牌会员

Rank: 6Rank: 6

积分
1305
沙发
发表于 2016-10-26 17:37:45 | 只看该作者
你看看数据点是否有同步到设备

6

主题

15

帖子

131

积分

注册会员

Rank: 2

积分
131
板凳
 楼主| 发表于 2016-10-27 10:07:37 | 只看该作者
app在切换网络后闪退!该如何解决呢!一筹莫展的么么哒!
错误日志如下:
10-27 10:04:17.677: E/GizSDKClientLog(24677): [SYS][ERROR][2016-10-27 10:04:17.684][Utils.java:720 openUrl][java.io.FileNotFoundException: https://m.baidu.com/error.jsp?tr ... 2735508214322736355]
10-27 10:04:19.817: E/GizSDKClientLog(25356): [SYS][ERROR][2016-10-27 10:04:19.824][MyCrashHandler.java:54 uncaughtException][捕获到一个crash..............]
10-27 10:04:19.827: E/GizSDKClientLog(25356): [SYS][ERROR][2016-10-27 10:04:19.837][MyCrashHandler.java:57 uncaughtException][捕获的错误信息java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jzdc.wifipower/com.jzdc.wifipower.framwork.activity.device.DeviceListActivity}: java.lang.NullPointerException]
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2388)
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at android.app.ActivityThread.access$900(ActivityThread.java:148)
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1319)
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at android.os.Handler.dispatchMessage(Handler.java:99)
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at android.os.Looper.loop(Looper.java:137)
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at android.app.ActivityThread.main(ActivityThread.java:5457)
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at java.lang.reflect.Method.invokeNative(Native Method)
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at java.lang.reflect.Method.invoke(Method.java:525)
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:854)
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:670)
10-27 10:04:19.827: E/GizSDKClientLog(25356):         at dalvik.system.Nat
10-27 10:04:19.837: E/GizSDKClientLog(25356): [SYS][CRASH][2016-10-27 10:04:19.842][MyCrashHandler.java:59 uncaughtException][捕获的错误信息java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jzdc.wifipower/com.jzdc.wifipower.framwork.activity.device.DeviceListActivity}: java.lang.NullPointerException]
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2388)
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at android.app.ActivityThread.access$900(ActivityThread.java:148)
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1319)
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at android.os.Handler.dispatchMessage(Handler.java:99)
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at android.os.Looper.loop(Looper.java:137)
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at android.app.ActivityThread.main(ActivityThread.java:5457)
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at java.lang.reflect.Method.invokeNative(Native Method)
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at java.lang.reflect.Method.invoke(Method.java:525)
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:854)
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:670)
10-27 10:04:19.837: E/GizSDKClientLog(25356):         at dalvik.system.Nat
10-27 10:04:19.847: E/GizSDKClientLog(25356): [SYS][ERROR][2016-10-27 10:04:19.859][MyCrashHandler.java:61 uncaughtException][main]
10-27 10:04:19.847: E/GizSDKClientLog(25356): [SYS][CRASH][2016-10-27 10:04:19.859][MyCrashHandler.java:164 handleException][Unable to start activity ComponentInfo{com.jzdc.wifipower/com.jzdc.wifipower.framwork.activity.device.DeviceListActivity}: java.lang.NullPointerException]


562

主题

1222

帖子

8127

积分

版主

Rank: 7Rank: 7Rank: 7

积分
8127
地板
发表于 2016-10-27 17:30:28 | 只看该作者
kuxia 发表于 2016-10-27 10:07
app在切换网络后闪退!该如何解决呢!一筹莫展的么么哒!
错误日志如下:
10-27 10:04:17.677: E/GizSDKCli ...

请注意修改数据点!
APP的数据点和MCU的数据点需保持一致哦。

要是不一致,容易引起闪退
1、机智云QQ群: 287087942
机智云爱好者-APP开发群: 599735135
QQ群目前非常活跃,欢迎大家参与进来,交流,讨论,答疑,解惑~~
2、机智云微信公众号: 机智云 gizwits /   机智云智能宠物屋go-kit
关注机智云Gizwits官方公众号随时掌握最新资讯和活动信息

45

主题

92

帖子

507

积分

高级会员

Rank: 4

积分
507
5#
发表于 2016-11-3 15:17:30 | 只看该作者
汉枫LPB120模块
空指针界面没有判空处理?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

加入Q群 返回顶部

版权与免责声明 © 2006-2024 Gizwits IoT Technology Co., Ltd. ( 粤ICP备11090211号 )

快速回复 返回顶部 返回列表