0

我得到了 Launcher 标签,但我的应用程序仍然无法在从 Eclipse 编译时启动,这是什么问题?

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myproject.test"
android:versionCode="1"
android:versionName="1.0" >


<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCES_LOCATION_EXTRA_COMMANDS"/>
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/>   
<uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES"/>   
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>



<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="15" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

    <service android:name=".CurrentMoodService">
    </service>


    <receiver android:name=".CurrentMoodWidgetProvider">
        <intent-filter>
            <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
            <category android:name="android.intent.category.DEFAULT"></category>
            <category android:name="android.intent.category.ALTERNATIVE"></category>
        </intent-filter>
        <intent-filter>
            <action android:name="com.myproject.test.widget.CurrentMoodService.MOODY" />
        </intent-filter>
        <meta-data android:name="android.appwidget.provider"
                   android:resource="@xml/widgetproviderinfo" />
    </receiver>



    <activity
        android:name="com.myproject.test.MainTabActivity"
        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>
    <activity android:name="com.myproject.test.activities.Home"></activity>
    <activity android:name="com.myproject.test.activities.Check"></activity>
    <activity android:name="com.myproject.test.activities.Map"></activity>
    <activity android:name="com.myproject.test.activities.Contact"></activity>
    <activity android:name="com.myproject.test.activities.More"></activity>
    <activity android:name="com.myproject.test.activities.About"></activity>
</application>

4

1 回答 1

6

在你的清单中,在第二行你写了

package="com.priject.test"

这里的包名是com.myproject.test

<activity
        android:name="com.myproject.test.MainTabActivity"
        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>

确保您指定了正确的包名称:)

于 2013-01-21T12:35:47.390 回答