E/AndroidRuntime: FATAL EXCEPTION: Thread-3 Process: com.example.zfang.course2_1, PID: 31755 android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6855) at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:1075) at android.view.ViewGroup.invalidateChild(ViewGroup.java:5242) at android.view.View.invalidateInternal(View.java:13574) at android.view.View.invalidate(View.java:13538) at android.view.View.invalidate(View.java:13522) at android.widget.TextView.checkForRelayout(TextView.java:7354) at android.widget.TextView.setText(TextView.java:4479) at android.widget.TextView.setText(TextView.java:4336) at android.widget.TextView.setText(TextView.java:4311) at com.example.zfang.course2_1.fragment.MineFragment$1$1.showProgress(MineFragment.java:89) at com.example.zfang.course2_1.service.DownloadService$1.run(DownloadService.java:86) at java.lang.Thread.run(Thread.java:761) D/EGL_emulation: eglMakeCurrent: 0xa9d850c0: ver 2 0 (tinfo 0xa9d831d0) D/OpenGLRenderer: endAllActiveAnimators on 0x8c994500 (RippleDrawable) with handle 0xa9dff550 W/System.err: java.net.SocketTimeoutException: connect timed out W/System.err: at java.net.PlainSocketImpl.socketConnect(Native Method) W/System.err: at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:334) W/System.err: at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:196) W/System.err: at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) W/System.err: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356) W/System.err: at java.net.Socket.connect(Socket.java:586) W/System.err: at com.android.okhttp.internal.Platform.connectSocket(Platform.java:113) W/System.err:
时间: 2024-03-31 19:34:54 浏览: 101
根据你提供的信息,这是一个 Android 应用程序的异常信息。异常类型为 android.view.ViewRootImpl$CalledFromWrongThreadException,表示只有创建视图层次结构的原始线程才能触摸其视图。这个异常可能是由于在不同的线程中更新 UI 元素引起的。另一个异常为 java.net.SocketTimeoutException,表示连接超时。这个异常可能是由于网络请求超时或网络连接不稳定引起的。
阅读全文