【发布时间】:2015-09-16 05:25:07
【问题描述】:
在我的应用程序中,我使用wifimanager 和互联网。它在Preview3 Android Marshmallow 上崩溃了。它给出了以下异常。
java.lang.SecurityException: ConnectivityService: Neither user 10057
nor current process has android.permission.CONNECTIVITY_INTERNAL.
如果有人遇到此问题并已修复。请帮忙修复。
提前致谢。
【问题讨论】:
-
我无法在清单中添加该权限,因为它是系统级权限。当我调用 ConnectivityManager requestNetwork 方法时它崩溃了。我必须尽快解决这个问题。我不知道为什么它正在发生。
标签: android exception crash connectivity android-6.0-marshmallow