【问题标题】:Android permission ACCES_NETWORK_STATE bug?Android 权限 ACCES_NETWORK_STATE 错误?
【发布时间】:2013-03-14 12:03:38
【问题描述】:

我在我的 android 应用程序中使用 Google V2,它运行良好。然而,Eclipse 每次运行时都会给我这个警告:

Please add <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> into AndroidManifest.xml to ensure correct behavior under poor connectivity conditions.

但是我已经在清单中添加了这个权限,并且在我的 xml 中有这个权限:

<!-- More usses permissions, this is inside the <manifest> but outside the <application> tag -->
<uses-permission android:name="android.permission.ACCES_NETWORK_STATE" />

我认为我设置正确,但 eclipse 仍然给我这个警告。有谁知道为什么?

【问题讨论】:

    标签: java android eclipse android-permissions


    【解决方案1】:

    有人知道为什么吗?

    你有android.permission.ACCES_NETWORK_STATE,这是不正确的。值为android.permission.ACCESS_NETWORK_STATE,ACCESS 部分中有两个S 字符。

    【讨论】:

    • omg... 我仍然觉得这很奇怪,因为我将它添加到清单的权限选项卡上。
    猜你喜欢
    • 1970-01-01
    • 2017-09-23
    • 1970-01-01
    • 2014-12-04
    • 2011-05-31
    • 2015-12-23
    • 1970-01-01
    • 2018-09-08
    • 2019-08-10
    相关资源
    最近更新 更多