我似乎無法啓動我的應用程序。它給了我這樣一個錯誤:Error running second Activity: The activity must be exported or contain an intent-filter
。我的清單有什麼問題嗎?「運行第二個活動時出錯:活動必須導出或包含意圖過濾器」
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.bill.myapplication1.MainActivity"
android:label="@string/app_name"
android:exported="true">>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.bill.myapplication1.SecondActivity"
android:label="@string/title_activity_second" >
</activity>
</application>
爲什麼您爲主要活動設置了export = true。這看起來不像接收者,因爲您沒有任何對manifest中的接收者的意圖過濾器。你是否打算開放你的應用程序以供其他應用程序進行交互? –
對不起,我只是找出另一個答案。我想我失去了,但我錯了。 –