---
title: "编译运行安卓程序时The launch will only sync the application package on the device"
author: "MagicMa_007"
date: "2012-11-17T22:10:21Z"
tags: []
categories: ["移动开发"]
slug: "the-launch-will-only-sync-the-application-package-on-the-device"
draft: false
lastmod: "2012-11-17T22:10:21Z"
id: 1728563
url: "https://magicma-007.iteye.com/blog/1728563"
---

编译运行安卓程序时

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

 

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

&lt;activity  
            android:label="@string/XXX"  
            android:name=".XXX"&gt;  
            &lt;intent-filter&gt;   
                &lt;action android:name="android.intent.action.MAIN" /&gt;   
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;   
            &lt;/intent-filter&gt;   
        &lt;/activity&gt;