为了账号安全,请及时绑定邮箱和手机立即绑定

如果你做过大华SDK二次开发,请拿你的知识来砸死我吧!

标签:
Android

本小白刚接触Android开发才三个多月了,最近两个星期一直卡在APP集成大华SDK的问题上,上周末好不容易把登录搞定了,结果无法播放实时视频,一直报通道号空!所以来寻求各位大佬的帮助,希望得到多名热心的大佬关爱!先受小弟一拜!

07-24 15:43:23.052: E/(27812): [2018-07-24 15:43:23.052176][P:27812/T:27812][TPTCPClient.cpp:763]

07-24 15:43:23.052: E/(27812): connect() failed: Operation now in progress

07-24 15:43:23.436: E/AndroidRuntime(27812): FATAL EXCEPTION: main

07-24 15:43:23.436: E/AndroidRuntime(27812): Process: com.example.kxapp, PID: 27812

07-24 15:43:23.436: E/AndroidRuntime(27812): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.kxapp/com.example.kxapp.LivePreviewActivity}: java.lang.NullPointerException: Attempt to read from field 'int com.company.NetSDK.NET_DEVICEINFO_Ex.nChanNum' on a null object reference

07-24 15:43:23.436: E/AndroidRuntime(27812):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2598)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2664)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at android.app.ActivityThread.access$900(ActivityThread.java:195)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1504)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at android.os.Handler.dispatchMessage(Handler.java:111)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at android.os.Looper.loop(Looper.java:207)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at android.app.ActivityThread.main(ActivityThread.java:5864)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at java.lang.reflect.Method.invoke(Native Method)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:803)

07-24 15:43:23.436: E/AndroidRuntime(27812): Caused by: java.lang.NullPointerException: Attempt to read from field 'int com.company.NetSDK.NET_DEVICEINFO_Ex.nChanNum' on a null object reference

07-24 15:43:23.436: E/AndroidRuntime(27812):  at com.example.module.LivePreviewModule.getChannel(LivePreviewModule.java:264)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at com.example.module.LivePreviewModule.getChannelList(LivePreviewModule.java:269)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at com.example.kxapp.LivePreviewActivity.setupView(LivePreviewActivity.java:127)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at com.example.kxapp.LivePreviewActivity.onCreate(LivePreviewActivity.java:115)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at android.app.Activity.performCreate(Activity.java:6379)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)

07-24 15:43:23.436: E/AndroidRuntime(27812):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2551)

07-24 15:43:23.436: E/AndroidRuntime(27812):  ... 9 more

原文链接:http://www.apkbus.com/blog-956899-78371.html

点击查看更多内容
TA 点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
  • 推荐
  • 评论
  • 收藏
  • 共同学习,写下你的评论
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消