简体   繁体   English

错误:无法解析 C 中的 XML:\Users\aNTA\AndroidStudioProjects\break\app\src\main\AndroidManifest.Z0F635D0E0F3874FFF8B581C132

[英]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.

相关问题 错误:无法从C:\\ Users \\ JR的Computer \\ Desktop \\ COMT \\ Actual Cellar App \\ src \\ main \\ AndroidManifest.xml中读取packageName - Error:Cannot read packageName from C:\Users\JR's Computer\Desktop\COMT\Actual Cellar App\src\main\AndroidManifest.xml Flutter 错误:任务“:app:generateDebugBuildConfig”执行失败。 (/android/app/src/main/AndroidManifest.xml 中的问题) - Flutter error : Execution failed for task ':app:generateDebugBuildConfig'. (problem in /android/app/src/main/AndroidManifest.xml ) 错误无法解析 androidmanifest.xml 中的 xml - Error failed to parse xml in androidmanifest.xml C:\\ Users \\ SABUJ \\ AndroidStudioProjects \\ new \\ app \\ src \\ main \\ res \\ values \\ colors.xml:1:1:错误:prolog中不允许内容 - C:\Users\SABUJ\AndroidStudioProjects\new\app\src\main\res\values\colors.xml:1:1: Error: Content is not allowed in prolog 错误:无法从app / src / main / AndroidManifest.xml中读取packageName - Error:Cannot read packageName from app/src/main/AndroidManifest.xml 错误提示:没有此类文件或目录,请打开“ app / src / main / AndroidManifest.xml” - error ENOENT: no such file or directory, open 'app/src/main/AndroidManifest.xml' 错误 androidmanifest.xml - error androidmanifest.xml AndroidManifest.xml中的错误 - Error in AndroidManifest.xml 无法从…\\ src \\ main \\ AndroidManifest.xml中读取packageName - Cannot read packageName from …\src\main\AndroidManifest.xml Android React Native App 请求未在 android/app/src/main/AndroidManifest.xml 中定义的权限 - Android React Native App asking for permissions that are not defined within android/app/src/main/AndroidManifest.xml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM