3

我正在从 JNI 创建 Java Socket ,将 Native 线程附加到 Java 并创建 socket createSocket(String, int)

这仅在 Android 2.3.x 版本中导致崩溃,并且在以上和以下版本中成功运行。

日志如下:

09-10 16:10:39.526: E/InputDispatcher(75): channel '40767870 com.x.ClientApp (server)' ~ Consumer closed input channel or an error occurred.  events=0x8
09-10 16:10:39.526: E/InputDispatcher(75): channel '40767870 com.x.ClientApp (server)' ~ Channel is unrecoverably broken and will be disposed!
09-10 16:10:39.556: I/WindowManager(75): WIN DEATH: Window{40811280 com.x.ProvisioningActivity paused=false}
09-10 16:10:39.586: I/WindowManager(75): WIN DEATH: Window{40767870 com.x.ClientApp paused=false}
09-10 16:10:39.616: I/WindowManager(75): WIN DEATH: Window{406b9b98 com.x.ProvisioningActivity paused=false}
09-10 16:10:39.666: E/InputDispatcher(75): Received spurious receive callback for unknown input channel.  fd=142, events=0x8
09-10 16:10:39.666: E/InputDispatcher(75): Received spurious receive callback for unknown input channel.  fd=161, events=0x8

在 android 2.3.x 中问题是 100%。

有任何想法吗?

4

0 回答 0