java.lang.SecurityException

ConnectivityService: Neither user 10171 nor current process has android.permission.ACCESS_NETWORK_STATE.

Samebug tips5

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()


rafaelrafael

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


rafaelrafael

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

Solutions on the web1299

  • via GitHub by longjunye
    ,
  • Stack trace

    • java.lang.SecurityException: ConnectivityService: Neither user 10171 nor current process has android.permission.ACCESS_NETWORK_STATE. at android.os.Parcel.readException(Parcel.java:1599) at android.os.Parcel.readException(Parcel.java:1552) at android.net.IConnectivityManager$Stub$Proxy.getActiveNetworkInfo(IConnectivityManager.java:1538) at android.net.ConnectivityManager.getActiveNetworkInfo(ConnectivityManager.java:923) at net.hockeyapp.android.utils.Util.isConnectedToNetwork(SourceFile:271) at net.hockeyapp.android.CrashManager.sendCrashes(SourceFile:558) at net.hockeyapp.android.CrashManager.sendCrashes(SourceFile:546) at net.hockeyapp.android.CrashManager.execute(SourceFile:204) at net.hockeyapp.android.CrashManager.register(SourceFile:143) at net.hockeyapp.android.CrashManager.register(SourceFile:128)

    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

    Unknown visitor
    Unknown visitorOnce,
    Stefan BrauneStefan Braune
    10 times, last one
    Saravana Kumar ChinnarajSaravana Kumar Chinnaraj
    4 times, last one
    MyInnosMyInnos
    11 times, last one
    jkjk
    12 times, last one
    231 more bugmates