我做了使用Eclipse新項目Android應用開發 - 基地項目包含錯誤
整個src
文件夾包含@Override
錯誤,我可以解決(API等級14,BlankActivity,標籤+刷卡)。 然而,AndroidManifest.xml
文件顯示錯誤:
The markup in the document following the root element must be well-formed.
我該如何解決這個問題?
這裏是不變的,默認的xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sohamchowdhury.ferric"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
</application>
</manifest><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sohamchowdhury.ferric"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".AspectListActivity"
android:label="@string/title_aspect_list" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".AspectDetailActivity"
android:label="@string/title_aspect_detail" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".AspectListActivity" />
</activity>
</application>
</manifest><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sohamchowdhury.ferric"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
你有太多的'manifests' .. – Aprian