3

我正在尝试在我的项目中使用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,它具有 Internet 权限,所以不确定这里发生了什么。任何帮助表示赞赏!

<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>
4

1 回答 1

0

I had this problem when I ran on JellyBean, since the READ_LOGS permission was removed in JB.

See this question for how to work around this problem in API 16 and above: READ_LOGS permission on Jelly Bean (api 16)

于 2013-02-01T23:21:58.840 回答