[2013-06-27 16:25:11 - login] No Launcher activity found!
[2013-06-27 16:25:11 - login] The launch will only sync the application package on the device!
当创建一个login活动的时候报上面的错误。然后程序安装成功,但是不启动。
解决办法是:
到AndroidManifest.xml文件添加Launcher,仿照蓝色的代码就可以了:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.login.LoginActivity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize|stateVisible" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>