我正在尝试在Eclipse上编写应用程序。通过XML在Manifest中手动添加新活动后,出现了解析xml错误。我查了类似的问题,但没有一个类似于我知道如何修复我的问题。我查看了我的清单,似乎无法找到不匹配标签的位置。错误消息表明它与关闭清单标记有关。我刚刚开始用XML编写。谢谢你的帮助!
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.aroundtuit"
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"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.aroundtuit.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".About"
android:label="@string/about_title"
android:theme="@android:style/Theme.Dialog">
</activity>
<activity android:name="Send"
android:theme="@style/AppBaseTheme">
</activity>
</application>
<uses-permission android:name="android.permission.SEND_SMS">
</uses-permission>
</manifest>
这是我的strings.xml文件:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">A Round Tuit</string>
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>
<string name="send_button_text">Send</string>
<string name="theme_button_text">Themes</string>
<string name="about_button_text">About</string>
<string name="about_title">About A Round Tuit</string>
<string name="contact_button_text">Contacts</string>
<string name="about_text">About the app: insert message</string>
</resources>