调用人脸检测api失败
拉曦啵鹿 发布于2019-05 浏览:2087 回复:2
0
收藏

调用人脸检测api,调试出现Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'问题,搜了网上的解决方法但都无效,跪求解答

 

D/NetworkSecurityConfig: No Network Security Config specified, using platform default
I/DpmTcmClient: RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
W/System.err: [Thread-2] WARN com.baidu.aip.client.BaseClient - oauth get error, current state: STATE_TRUE_CLOUD_USER
W/OkHttpClient: A connection to https://aip.baidubce.com/ was leaked. Did you forget to close a response body?
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.faceattribute1, PID: 3304
java.lang.NumberFormatException: For input string: ""
at java.lang.Integer.parseInt(Integer.java:620)
at java.lang.Integer.parseInt(Integer.java:643)
at com.example.faceattribute1.MainActivity$4.handleMessage(MainActivity.java:195)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6798)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
D/OSTracker: OS Event: crash
Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'

收藏
点赞
0
个赞
共2条回复 最后由拉曦啵鹿回复于2019-05
#3拉曦啵鹿回复于2019-05

谢谢!!已经解决啦,是数据解析出现了问题

0
#2用户已被禁言回复于2019-05

您能把你的代码发出来吗?这个看的不是SDK的错误哦。

0
TOP
切换版块