kuxia 发表于 2016-10-26 16:44:39

Android 集成最新sdk后偶现闪退

1,当app在无操作时偶现闪退2,log日志如图所示:

Gemini 发表于 2016-10-26 17:37:45

你看看数据点是否有同步到设备

kuxia 发表于 2016-10-27 10:07:37

app在切换网络后闪退!该如何解决呢!一筹莫展的么么哒!
错误日志如下:
10-27 10:04:17.677: E/GizSDKClientLog(24677): https://m.baidu.com/error.jsp?traceid=147753385703866726502735508214322736355]
10-27 10:04:19.817: E/GizSDKClientLog(25356): [捕获到一个crash..............]
10-27 10:04:19.827: E/GizSDKClientLog(25356): [捕获的错误信息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): [捕获的错误信息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):
10-27 10:04:19.847: E/GizSDKClientLog(25356):


Genius 发表于 2016-10-27 17:30:28

kuxia 发表于 2016-10-27 10:07
app在切换网络后闪退!该如何解决呢!一筹莫展的么么哒!
错误日志如下:
10-27 10:04:17.677: E/GizSDKCli ...

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

要是不一致,容易引起闪退

小铲子 发表于 2016-11-3 15:17:30

空指针界面没有判空处理?
页: [1]
查看完整版本: Android 集成最新sdk后偶现闪退