未授予Android应用中的互联网权限

时间:2012-10-14 13:45:42

标签: android acra android-permissions

我正在尝试在我的项目中使用ACRA,但每当我的应用启动时,我都会在日志中看到以下消息。

E/ACRA    (11618): com.example.TestApp should be granted permission android.permission.INTERNET if you want your crash reports to be sent. If you don't want to add this permission to your application you can also enable sending reports by email. If this is your will then provide your email address in @ReportsCrashes(mailTo="your.account@domain.com"

以下是我的AndroidManifest.xml,它具有互联网权限,所以不确定这里发生了什么。任何帮助表示赞赏!

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.TestApp"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="16" />

    <application
        android:icon="@drawable/ic_launcher"
        android:name="TestApplication"
        android:label="@string/app_name" >
        <activity
            android:name="MainActivity_"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

    <uses-permission android:name="android.permission.INTERNET"/>

</manifest>

1 个答案:

答案 0 :(得分:0)

当我在JellyBean上运行时遇到了这个问题,因为在JB中删除了READ_LOGS权限。

有关如何在API 16及更高版本中解决此问题,请参阅此问题: READ_LOGS permission on Jelly Bean (api 16)