编译运行安卓程序时The launch will only sync the application package on the device

编译运行安卓程序时

eclipse里console里提示The launch will only sync the application package on the device

 

经查找是AndroidManifest.xml里的主activity里红色部分没加,,

<activity
            android:label="@string/XXX"
            android:name=".XXX">
            <intent-filter> 
                <action android:name="android.intent.action.MAIN" /> 
                <category android:name="android.intent.category.LAUNCHER" /> 
            </intent-filter> 

        </activity>

猜你喜欢

转载自magicma-007.iteye.com/blog/1728563