简体   繁体   English

多窗口错误androidmanifest.xml

[英]Multi windows error androidmanifest.xml

I am trying to insert nell'android manifest support for multi windows .. that's what I did: 我正在尝试为多窗口插入nell'android清单支持..那就是我所做的:

<application
        <uses-library required="false" name="com.sec.android.app.multiwindow" />
        <meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
        <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632.0dip" />
        <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="598.0dip" />
        <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:value="632.0dip" />
        <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:value="598.0dip" />
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.X.XX.XXX"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

Why do I receive an error? 为什么会收到错误消息? How can i fix it? 我该如何解决?

You're putting it in the wrong place.. According to the [MOD] Multiwindow Apps It should be inserted right before the ending application tag. 您将其放在错误的位置。根据[MOD] Multiwindow Apps ,应将其插入到结束application标签的正前方。

In your case you should use the following: 在您的情况下,您应该使用以下内容:

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.X.XX.XXX"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
            <category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
        </intent-filter>
    </activity>
    <uses-library android:required="false" android:name="com.sec.android.app.multiwindow" />
    <meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
    <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="598.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:value="632.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:value="598.0dip" />
</application>

EDIT: I added namespace prefixes as suggested by other answer. 编辑:我添加了其他答案建议的名称空间前缀。

the error is here ( attribute is missing the android namespace prefix ) 错误在这里(属性缺少android名称空间前缀)

Replace: 更换:

<uses-library required="false" name="com.sec.android.app.multiwindow" />

with: 与:

<uses-library android:required="false" android:name="com.sec.android.app.multiwindow" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误无法解析 androidmanifest.xml 中的 xml - Error failed to parse xml in androidmanifest.xml android studio中的AndroidManifest.xml编码错误 - AndroidManifest.xml encodin error in android studio 运行测试时出错,未在AndroidManifest.xml中指定目标包 - Error running tests, Target package is not specified in AndroidManifest.xml 错误:androidmanifest.xml文件丢失 - >我缺少什么? - error: androidmanifest.xml file missing --> What am i missing? 错误您是否在 AndroidManifest.xml 中声明了此活动? - Error have you declared this activity in your AndroidManifest.xml? 具有默认值的Android项目的AndroidManifest.xml文件中的错误 - Error in AndroidManifest.xml File of an Android Project With Default Values AndroidManifest.xml 文件中 Android 工作室中未解决的包/类错误 - Unresolved package/class Error in Android studio in AndroidManifest.xml file 错误:Android Source Generator:找不到[project] AndroidManifest.xml文件 - Error:Android Source Generator: [project] AndroidManifest.xml file not found AndroidManifest.xml中SMS接收权限的基本错误 - Basic error in AndroidManifest.xml for SMS receiving permission 为什么我在androidmanifest.xml中使用configchanges声明了adactivity这个错误 - why i have this error with adactivity declared in androidmanifest.xml with configchanges
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM