2016-03-18 81 views
1

我已經在我的清單中使用了互聯網權限我已將它放在應用程序之上和應用程序之下,但無論我把它放在哪裏,我都會收到警告,表示它不允許在那裏。此外,我確實使用了意圖填充,並且還收到警告。當我運行我的應用程序時,我得到一個權限被拒絕的錯誤。以下是我的清單。Android Studio互聯網權限錯誤

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="jrodriguez.myrssfeed"> 

    <application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:supportsRtl="true" 
    android:theme="@style/AppTheme"> 
    <activity android:name=".MainActivity"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    </application> 
    <uses-permissions android:name="android.permission.INTERNET"/> 

回答

2

您有拼寫錯誤的命令,沒有 「的」 權限:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="jrodriguez.myrssfeed"> 

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