I have a report of this exception even though I have the permission in the manifest:
E/AndroidRuntime(1215): java.lang.RuntimeException: Unable to start activity ComponentInfo{****}: java.lang.SecurityException: ConnectivityService: Neither user 10052 nor current process has android.permission.ACCESS_NETWORK_STATE.
Manifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="****"
android:versionCode="1"
android:versionName="1.0" >
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="21" />
<application>
....
</application>
</manifest>
Try rebuilding your project (clean, build). If it doesn't help, you can try this a bit weird solution from here that seems to be working.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With