调用人脸检测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'

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐