java.lang.SecurityException: ConnectivityService: Neither user 10874 nor current process has android.permission.ACCESS_NETWORK_STATE.

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

,
Expert tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

,
Expert tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

Solutions on the web

via GitHub by clxxcl
, 1 year ago
ConnectivityService: Neither user 10874 nor current process has android.permission.ACCESS_NETWORK_STATE.
via Stack Overflow by Sankar Ganesh
, 2 years ago
ConnectivityService: Neither user 10031 nor current process has android.permission.ACCESS_NETWORK_STATE.
via Stack Overflow by Akshay Shah
, 2 years ago
ConnectivityService: Neither user 10208 nor current process has android.permission.ACCESS_NETWORK_STATE.
via Stack Overflow by user3547706
, 2 years ago
ConnectivityService: Neither user 10064 nor current process has android.permission.ACCESS_NETWORK_STATE.
via xda-developers.com by Unknown author, 2 years ago
Neither user 10005 nor current process has android.permission.INSTALL_PACKAGES.
via GitHub by wenmin-wu
, 10 months ago
Neither user 10127 nor current process has android.permission.MANAGE_USERS.
java.lang.SecurityException: ConnectivityService: Neither user 10874 nor current process has android.permission.ACCESS_NETWORK_STATE.
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at android.net.IConnectivityManager$Stub$Proxy.getNetworkInfo(IConnectivityManager.java:1075)
at android.net.ConnectivityManager.getNetworkInfo(ConnectivityManager.java:732)
at com.raymi.mifm.lib.util.NetUtils.isWIFIConnected(NetUtils.java:30)
at com.raymi.mifm.lib.util.NetUtils.checkNet(NetUtils.java:20)
at com.raymi.mifm.app.login.LoginActivity.onClick(LoginActivity.java:92)
at android.view.View.performClick(View.java:5207)
at android.view.View$PerformClick.run(View.java:21177)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5438)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 3 hours ago
Samebug visitor profile picture
Unknown user
Once, 10 hours ago
Samebug visitor profile picture
Unknown user
Once, 1 day ago
Once, 3 days ago
252 more bugmates

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