2015-10-09 83 views
-4
<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.example.chawlaz.contentprovider" 
    android:versionCode="1" 
    android:versionName="1.0" > 

    <uses-sdk 
     android:minSdkVersion="8" 
     android:targetSdkVersion="22" /> 

    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme" > 

     <activity 
      android:name="com.example.chawlaz.contentprovider.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> 

     <provider 
      android:authorities="com.example.provider.College" 
      android:name="StudentsProvider"/> 
    </ provider > 
</ application> 

</manifest> 

它顯示已關閉的清單標記中的錯誤。 另請參閱: 錯誤:無法從/home/chawlaz/Downloads/myfirstapp/MyFirstApp/ContentProvider/app/src/main/AndroidManifest.xml讀取packageName 這是顯示在標題中的上述錯誤中顯示的另一個錯誤。 我是新來的機器人。我可以得到詳細的想法嗎?錯誤:元素類型「應用程序」必須由匹配的結束標記「</ application>」終止

+8

只是刪除''作爲 –

回答

2

您需要刪除</ provider >

</ application>刪除空間。

應該是這樣</application>

+0

謝謝!它的工作.. –

+0

你的歡迎巴迪 – KishuDroid

0

您已關閉<provider>標記。無需</provider>

+0

已經camelCaseCoder說,你已經關閉了供應商的標籤。請參閱該行; android:name =「StudentsProvider」/>斜槓(/)關閉提供程序。 – enigman

相關問題