android.os.NetworkOnMainThreadException: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Destroy
, 1 year ago
This exception has no message.
via Stack Overflow by George Profenza
, 2 years ago
This exception has no message.
via Stack Overflow by Canvas
, 2 years ago
android.os.NetworkOnMainThreadException:
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:168)
at libcore.io.IoBridge.sendto(IoBridge.java:490)
at java.nio.SocketChannelImpl.writeImpl(SocketChannelImpl.java:391)
at java.nio.SocketChannelImpl.write(SocketChannelImpl.java:349)
at zmq.Signaler.send(Signaler.java:121)
at zmq.Mailbox.send(Mailbox.java:85)
at zmq.Ctx.sendCommand(Ctx.java:388)
at zmq.ZObject.sendCommand(ZObject.java:362)
at zmq.ZObject.sendPlug(ZObject.java:171)
at zmq.ZObject.sendPlug(ZObject.java:161)
at zmq.Own.launchChild(Own.java:126)
at zmq.SocketBase.addEndpoint(SocketBase.java:550)
at zmq.SocketBase.connect(SocketBase.java:542)
at mia.face.id.zmqtestest.MainActivity$1.onClick(MainActivity.java:34)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18422)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:813)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 10 hours ago
Samebug visitor profile picture
Unknown user
2 times, 1 month ago
3 times, 4 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.