我不断收到一个错误,指出,元素类型应用程序必须后跟属性规范>或/>\".\"
<?XML版本=1.0编码=UTF-8&GT?;<清单的xmlns:机器人=http://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; < /用途>< /清单>
解决方案
这是正确的表格,看看你没有关闭一些标签。
<应用机器人: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>
上一篇:CursorIndexOutOfBoundsException指数0要求,在Android的大小为0大小、指数、CursorIndexOutOfBoundsException、Android
下一篇:如何使用HTML5音频标签使用PhoneGap的播放本地的MP3在Android?如何使用、音频、标签、Android