提示No Launcher activity found

来源:互联网 发布:藏头诗 魂归大海知乎 编辑:程序博客网 时间:2024/06/05 21:02
找开Manifest.xml,增加红色部分内容:
 
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.helloworld"
    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=".HelloWorld"
            android:label="@string/title_activity_hello_world" >
            
   <intent-filter>
   <action android:name="android.intent.action.MAIN"/>
   <category android:name="android.intent.category.LAUNCHER"/>
   </intent-filter>
            
            
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="HelloWorld" />
        </activity>
    
    </application>
</manifest>
原创粉丝点击