我正在从JNI创建Java Socket,将Native线程附加到Java并创建套接字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%。
有什么想法吗?