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