我正在尝试使用 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/