2013-01-21 172 views
0

我得到了啓動器標籤,但我的應用程序仍然不啓動編譯從eclipse,有什麼問題?沒有啓動器活動發現Android

<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> 

回答

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> 

確保你已經指定了正確的包名:)

+0

嗯,我只是通過張貼在這裏更正了從原件的包名稱到一些隨機,所以不是這是錯誤對不起我的壞。 –

+0

只需使用'android:name =「。MainTabActivity」'而不是'android:name =「com.myproject.test.MainTabActivity」'。如果你已經設置了正確的軟件包名稱:) – AndroidLearner

+0

:(java.lang.ClassNotFoundException,我討厭清單文件。 –