android - 未授予 Android 应用程序中的互联网权限

标签 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>

最佳答案

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

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

关于android - 未授予 Android 应用程序中的互联网权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12882807/

相关文章:

android - ffmpeg 规模过滤器耗时太长

android - shouldShowRequestPermissionRationale 方法的工作

android - 如何对 android.graphics.Bitmap 和 BitmapFactory 进行单元测试?

android - 如何识别在 Canvas 上绘制的字符

android - 使用安卓手机测北

java - Android - Acra 不报告

android - 如何配置 Acralyzer?

java - 调整屏幕亮度时出现 WRITE_SETTINGS 权限的 SecurityException

c# - 将文件从 Android 客户端发送到 C# 服务器,在读取整个文件之前中断

php - ACRA 将报告插入我的服务器数据库