手记

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

本小白刚接触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

0人推荐
随时随地看视频
慕课网APP