简体   繁体   English

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

[英]Internet permission in Android app not granted

I'm trying to use ACRA in my project but whenever my app launches, I see the following message in the log. 我正在尝试在我的项目中使用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"

Below is my AndroidManifest.xml , which has Internet permissions, so not sure what's going on here. 下面是我的AndroidManifest.xml ,它具有Internet权限,因此不确定这里发生了什么。 Any help appreciated! 任何帮助赞赏!

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

I had this problem when I ran on JellyBean, since the READ_LOGS permission was removed in JB. 我在JellyBean上运行时遇到了这个问题,因为在JB中删除了READ_LOGS权限。

See this question for how to work around this problem in API 16 and above: READ_LOGS permission on Jelly Bean (api 16) 有关如何在API 16及更高版本中解决此问题,请参阅此问题: Jelly Bean上的READ_LOGS权限(api 16)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM