提示No Launcher activity found
生活随笔
收集整理的這篇文章主要介紹了
提示No Launcher activity found
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
找開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>
??? 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>
總結
以上是生活随笔為你收集整理的提示No Launcher activity found的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android library proj
- 下一篇: 你的手机上未安装应用程序”的解决方案