[英]ERROR: Failed to parse XML in C:\Users\aNTA\AndroidStudioProjects\breaking\app\src\main\AndroidManifest.xml
Im new to AppDev and learning on my own.我是 AppDev 的新手,我自己学习。 While experimenting, i came across this and finding it hard to resolve at the moment.
在进行实验时,我遇到了这个问题,目前很难解决。 Can anyone help me out pjease.
任何人都可以帮助我pjease。 I am working with Android Studio 3.6
我正在使用 Android Studio 3.6
<?xml version="1.0" encoding="utf-8"?>
<activity>xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.breaking">
<activity>
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
</activity
The element type "activity" must be terminated by the matching end-tag "".元素类型“活动”必须以匹配的结束标签“”结束。
Any help will be greatly appreciated.任何帮助将不胜感激。
Thank you Josh谢谢乔希
Your code is looking messy.你的代码看起来很乱。 If it is really a manifest file code, then it should be like
如果它真的是一个清单文件代码,那么它应该是这样的
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.breaking">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="activity name"/>
</application>
</manifest>
if this is the whole manifest file, you have two activity opening and one closing which is at the end.如果这是整个清单文件,那么您有两个活动打开和一个关闭,最后是。
Error points to the obvious solution.错误指向明显的解决方案。
<?xml version="1.0" encoding="utf-8"?>
<activity>xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.breaking">
<activity>
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
**</activity>**
</activity
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.