Reputation: 3
I get the following error but there is no problem in my manifest file.
I tried changing my project name but I got this error once I changed my project name. help me solving this error without changing the project name back to the old one.
My old project name was "radio" my new project name is "Msurvey"
My error:
[2014-02-15 17:35:02 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser exception for H:\radio\AndroidManifest.xml: The element type "manifest" must be terminated by the matching end-tag "</manifest>".
[2014-02-15 17:35:02 - radio] Error in an XML file: aborting build.
This is my manifest file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.radio"
android:versionCode="1"
android:versionName="1.0" >
<uses-feature android:glEsVersion="0x00020000" >
</uses-feature>
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="18" />
<application
android:allowBackup="true"
android:icon="@drawable/mobilesurvey"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.radio.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>
<activity
android:name="com.example.radio.Res"
android:label="@string/title_activity_res" >
</activity>
<activity
android:name="com.example.radio.Admin"
android:label="@string/title_activity_admin" >
</activity>
<activity
android:name="com.example.radio.View"
android:label="@string/title_activity_view" >
</activity>
<activity
android:name="com.example.radio.View1"
android:label="@string/title_activity_view1" >
</activity>
<activity
android:name="com.example.radio.Answers"
android:label="@string/title_activity_answers" >
</activity>
<activity
android:name="com.example.radio.Data"
android:label="@string/title_activity_data" >
</activity>
<activity
android:name="com.example.radio.Food"
android:label="@string/title_activity_food" >
</activity>
<activity
android:name="com.example.radio.Service"
android:label="@string/title_activity_service" >
</activity>
<activity
android:name="com.example.radio.Services"
android:label="@string/title_activity_services" >
</activity>
<activity
android:name="com.example.radio.Places"
android:label="@string/title_activity_places" >
</activity>
<activity
android:name="com.example.radio.Adminmenu"
android:label="@string/title_activity_adminmenu" >
</activity>
<activity
android:name="com.example.radio.LoginActivity"
android:label="@string/title_activity_login"
android:windowSoftInputMode="adjustResize|stateVisible" >
</activity>
<activity
android:name="com.example.radio.FullscreenActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/title_activity_fullscreen"
android:theme="@style/FullscreenTheme" >
</activity>
<activity
android:name="com.example.radio.Adminlogin"
android:label="@string/title_activity_adminlogin" >
</activity>
<activity
android:name="com.example.radio.Report"
android:label="@string/title_activity_report" >
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
I tried all the similar questions in stackoverflow for this error but none solved my problem. Also all myactivities have their background changed to black as default from white. plz help me solve this color change mainly. Plz help me solve it.
Upvotes: 0
Views: 2854
Reputation: 141
remove the stating blank before xml-manifest, see The processing instruction target matching "[xX][mM][lL]" is not allowed
Also you need to place user-permission tags before appliction tag.
Regards,
Alex
Upvotes: 0
Reputation: 7569
It seems to pass XML validation. You said you did a clean, but what could possibly be the problem is that maybe you're modifying the wrong AndroidManifest.xml. (There are versions of it dynamically created in your bin and gen folders for instance). Check that you're modifying the AndroidManifest.xml in the topmost folder of your project.
Upvotes: 1