2016-11-16 142 views
-1

我正在創建一個使用多個標籤的應用程序。所以當我運行我的應用程序時,我得到這3個錯誤。這些錯誤剛剛出現從哪兒冒出來 -Android:屬性名稱具有無效字符''

Error:(14) Tag <uses-permission> attribute name has invalid character ' '. 

Error:(14) Tag <uses-permission> attribute name has invalid character ' '. 

Error:Execution failed for task ':app:processDebugResources'. 
> com.android.ide.common.process.ProcessException: Failed to execute aapt 

當我懸停在紅色標記在清單文件我得到這個錯誤

`「URI is not Registered」?` 

這裏是清單文件文本:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.android.ict.seneca.androidpocketguide" 
    android:versionCode="1" 
    android:versionName="1.0" > 

    <uses-sdk 
     android:minSdkVersion="21" 
     android:targetSdkVersion="23" /> 

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

    <application 
     android:name="com.android.tools.fd.runtime.BootstrapApplication" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme" > 
     <activity android:name="com.android.ict.seneca.androidpocketguide.MainActivity" > 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.android.ict.seneca.androidpocketguide.SecondActivity" 
      android:label="Second Activity" > 
      <intent-filter> 
       <action android:name="com.android.ict.seneca.androidpocketguide.addlocation" /> 

       <category android:name="android.intent.category.DEFAULT" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.android.ict.seneca.androidpocketguide.About" 
      android:label="About" > 
      <intent-filter> 
       <action android:name="com.android.ict.seneca.androidpocketguide.about" /> 

       <category android:name="android.intent.category.DEFAULT" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.android.ict.seneca.androidpocketguide.Websites" 
      android:label="Websites" > 
      <intent-filter> 
       <action android:name="com.android.ict.seneca.androidpocketguide.navigate" /> 

       <category android:name="android.intent.category.DEFAULT" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.android.ict.seneca.androidpocketguide.SingleListItem" 
      android:label="Single Item Selected" > 
     </activity> 
    </application> 

</manifest> 
+0

這意味着額外的不必要的空格 –

+0

我很抱歉,我知道了。它在這裏:

回答

0

只刪除上次權限中的空間

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

到:

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 
相關問題