[英]“manifest” must be terminated by the matching end-tag “</manifest>”
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" 我的旧项目名称是“ radio”,我的新项目名称是“ 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. 我为这个错误尝试了所有在stackoverflow中类似的问题,但是没有一个解决了我的问题。 Also all myactivities have their background changed to black as default from white.
同样,所有myactivities的背景默认都从白色更改为黑色。 plz help me solve this color change mainly.
请帮助我主要解决此颜色变化。 Plz help me solve it.
请帮我解决。
It seems to pass XML validation. 它似乎通过了XML验证。 You said you did a clean, but what could possibly be the problem is that maybe you're modifying the wrong AndroidManifest.xml.
您说您做了一个干净的工作,但是可能的问题是您修改的AndroidManifest.xml错误。 (There are versions of it dynamically created in your bin and gen folders for instance).
(例如,有一些版本是在bin和gen文件夹中动态创建的)。 Check that you're modifying the AndroidManifest.xml in the topmost folder of your project.
检查您是否在项目的最上层文件夹中修改AndroidManifest.xml。
remove the stating blank before xml-manifest, see The processing instruction target matching "[xX][mM][lL]" is not allowed 删除xml-manifest之前的空白,请参阅不允许与“ [xX] [mM] [lL]”匹配的处理指令目标
Also you need to place user-permission tags before appliction tag. 另外,您还需要在权限标签之前放置用户权限标签。
Regards, 问候,
Alex 亚历克斯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.