gpt4 book ai didi

android - Malformed Manifest - 找不到元素 list 的声明

转载 作者:太空狗 更新时间:2023-10-29 14:55:50 25 4
gpt4 key购买 nike

启动应用程序时出现 Failures manifest malformed 错误 我的 list 文件中有什么问题?

我一直在四处寻找,我已经检查过:

  1. 我检查了大小写

  2. 包设置正确

  3. Parse 和 facebook 的所有库都已正确导入。(或者我错过了什么)

我也尝试过注释掉部分内容以查看它是否可以编译,但无济于事。

我还运行了验证并显示了这些错误

Error:(1, 56) schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
Error:(3, 38) cvc-elt.1: Cannot find the declaration of element 'manifest'.
Error:(1, 56) s4s-elt-schema-ns: The namespace of element 'x' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.
Error:(1, 56) s4s-elt-invalid: Element 'x' is not a valid element in a schema document.

我不明白这些错误以及元素 X 是什么。

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="artisedesolution.task" >


<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- PARSE -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

<supports-screens android:xlargeScreens="true" />
<supports-screens android:largeScreens="true" />
<supports-screens android:normalScreens="true" />

<permission
android:name=".permission.C2D_MESSAGE"
android:protectionLevel="signature" />

<uses-permission android:name=".permission.C2D_MESSAGE" />

<!-- PARSE -->
<application
android:name="Utilities.AppUtilities"
android:allowBackup="true"
android:icon="@mipmap/appicon"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/app_id" />

<activity
android:name=".Activities.Login"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.NoActionBar" />
<activity android:name="com.facebook.FacebookActivity" android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity
android:name=".Activities.Splash"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Activities.RegistrationTemplate"
android:label="@string/title_activity_registration"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".Activities.Login" />
</activity>
<activity
android:name=".Activities.Task"
android:label="Task"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".Activities.SignUp"
android:label="@string/title_activity_sign_up"
android:screenOrientation="portrait" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".Activities.Login" />
</activity>
<activity
android:name=".Activities.ClaimCode"
android:label="Pocket"
android:screenOrientation="portrait" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".Activities.Task" />
</activity>
<activity
android:name=".Activities.Join"
android:label="@string/title_activity_join"
android:screenOrientation="portrait" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".Activities.Task" />
</activity>
<activity
android:name=".Activities.TaskInstantGratification"
android:label="@string/title_activity_task_instant_gratification"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".Activities.TaskRate"
android:label="@string/title_activity_task_rate"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".Activities.TaskPhoto"
android:label="@string/title_activity_task_photo"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".Activities.TaskSurprise"
android:label="@string/title_activity_task_surprise"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".Activities.TaskSurvey"
android:label="@string/title_activity_task_survey"
android:parentActivityName=".Activities.Join"
android:screenOrientation="portrait" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".Activities.Join" />
</activity>
<activity
android:name=".Activities.Edit"
android:label="@string/title_activity_edit"
android:screenOrientation="portrait" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".Activities.Join" />
</activity>


<service android:name="com.parse.PushService" />

<receiver android:name="com.parse.ParseBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
<receiver
android:name="com.parse.ParsePushBroadcastReceiver"
android:exported="false" >
<intent-filter>
<action android:name="com.parse.push.intent.RECEIVE" />
<action android:name="com.parse.push.intent.DELETE" />
<action android:name="com.parse.push.intent.OPEN" />
</intent-filter>
</receiver>
<receiver
android:name="com.parse.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="artisedesolution.task" />
</intent-filter>
</receiver>

<activity
android:name=".Activities.About"
android:label="@string/title_activity_about"
android:screenOrientation="portrait" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".Activities.Task" />
</activity>
<activity
android:name=".Activities.InstructionsActivity"
android:label="@string/title_activity_instructions" >
</activity>
</application>
</manifest>

最佳答案

将您的 xml list 放入 http://codebeautify.org/xmlvalidate第43行有空格

关于android - Malformed Manifest - 找不到元素 list 的声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31567002/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com