对于Android无效的属性值的语法:largescreens:="真" [英] Invalid attribute value syntax for android:largescreens: = "true"
问题描述
我开发一个Android应用程序与11的minSdkVersion和17 targetSdkVersion。 我设计这个应用服务多个屏幕大小。所以我把支持清单中file.I所有屏幕想这个应用程式,以支持所有的密度。
I am developing an android application with minSdkVersion of 11 and targetSdkVersion of 17. I am designing this apps for multiple screen sizes. So i put the support for all the screens in manifest file.I want this apps to support all density.
我的Manifest.xml code:
My Manifest.xml code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.sample"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens= "true"
android:xlargeScreens="true"
android:anyDensity="true"/>
<application
android:debuggable="true"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:name="CommApp" >
<activity
android:name="com.example.android.sample.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="HomePage"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
android:screenOrientation="portrait"></activity>
<activity android:name="Registering"
android:screenOrientation="portrait"
></activity>
<activity android:name="ListviewActivity"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
android:screenOrientation="portrait"></activity>
</application>
</manifest>
我已经创建的布局文件夹中所有的屏幕尺寸为RES /布局小,RES /布局正常,RES /布局大型,RES /布局XLARGE。 我想运行在屏幕尺寸720x1280的模拟器这个应用中,此设备我创建的所有布局文件的RES /布局XLARGE文件夹。 但在运行它显示了以下错误:
I have created layout folder for all screen sizes as res/layout-small, res/layout-normal, res/layout-large, res/layout-xlarge. I want to run this application in a emulator of screen size 720x1280, for this device I created all layout files in res/layout-xlarge folder. But while running it shows the following error:
Invalid attribute value syntax for android:largescreens: = "true"
android:xlargeScreens="true"
android:anyDensity="true"/
我不知道什么是错的?谁能告诉我的解决方案。 先谢谢了。
I do not know what is the wrong? Can anyone please tell me the solution. Thanks in advance.
推荐答案
我有同样的错误与我的属性的格式是这样的:
I had the same error with my attributes formatted like this:
<supports-screens android:smallScreens = "false"
android:normalScreens = "false"
android:largeScreens = "false"
android:xlargeScreens = "true"
android:requiresSmallestWidthDp = "720" />
错误:
update-manifest:
[exec] Invalid attribute name: android:smallscreens
删除等号两旁的空格符号固定它。
Removing the whitespace around the equals sign fixed it.
这篇关于对于Android无效的属性值的语法:largescreens:=&QUOT;真&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!