rpc.RpcException

android.os.NetworkOnMainThreadException

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1167

  • via Unknown by Unknown author,
  • Stack trace

    • rpc.RpcException: android.os.NetworkOnMainThreadException at rpc.RpcClient.invoke(RpcClient.java:53) at java.lang.reflect.Proxy.invoke(Proxy.java:397) at $Proxy0.arriba(Unknown Source) at com.example.franklin.pasapapel.MainActivity$1.onClick(MainActivity.java:82) at android.view.View.performClick(View.java:4756) at android.view.View$PerformClick.run(View.java:19749) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) Caused by: android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1147) at java.net.InetAddress.lookupHostByName(InetAddress.java:418) at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252) at java.net.InetAddress.getAllByName(InetAddress.java:215) at java.net.Socket.tryAllAddresses(Socket.java:109) at java.net.Socket.<init>(Socket.java:178) at java.net.Socket.<init>(Socket.java:150) at rpc.RpcClient.invoke(RpcClient.java:42)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Indri YunitaIndri Yunita
    6 times, last one
    jkjk
    8 times, last one
    BassiuzBassiuz
    Once,
    Unknown visitor
    Unknown visitorOnce,
    asvidasvid
    9 times, last one
    38 more bugmates