元素类型"申请表]必须跟任一属性的规格,与QUOT;>"或QUOT; />" #2申请表、属性、元素、规格

2023-09-06 10:11:54 作者:-为了你我会坚强

我不断收到一个错误,指出,元素类型应用程序必须后跟属性规范>或/>\".\"

 <?XML版本=1.0编码=UTF-8&GT?;<清单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android    包=com.thenewboston.sammy    安卓版code =1    机器人:=的versionName1.0>    <用途-SDK        安卓的minSdkVersion =8        机器人:targetSdkVersion =17/>    <应用机器人:allowBackup =真        机器人:图标=@绘制/ ic_launcher        机器人:标签=@字符串/ APP_NAME 

我得到正确低于这个错误:                                

 <类机器人:名字=android.intent.category.LAUNCHER/>            &所述; /意图滤光器>        < /活性GT;    < /用途>< /清单> 

解决方案 Selenium Python自动化技术与实战 quot Web Driver API 元素定位

这是正确的表格,看看你没有关闭一些标签。

 <应用机器人:allowBackup =真    机器人:图标=@绘制/ ic_launcher    机器人:标签=@字符串/ APP_NAME    ...>    <活动...>        &所述;意图滤光器>            <类机器人:名字=android.intent.category.LAUNCHER/>        &所述; /意图滤光器>    < /活性GT;< /用途> 

I keep getting an error that says, "Element type "application" must be followed by either attribute specifications, ">" or "/>"."

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.thenewboston.sammy"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />

    <application android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"

I'm getting the error right below this:

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

解决方案

This is the right form, see if you didn't close some tags.

<application android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    ...>
    <activity ...>
        <intent-filter>    
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>