2015-10-09 81 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

相关问题