2013-03-19 75 views
-1
[2013-03-19 08:52:49 - GEARS] Performing sync 
[2013-03-19 08:52:50 - GEARS] Automatic Target Mode: launching new emulator with compatible AVD 'sdfs' 
[2013-03-19 08:52:50 - GEARS] Launching a new emulator with Virtual Device 'sdfs' 
[2013-03-19 08:52:54 - GEARS] ------------------------------ 
[2013-03-19 08:52:54 - GEARS] Android Launch! 
[2013-03-19 08:52:54 - GEARS] adb is running normally. 
[2013-03-19 08:52:54 - GEARS] No Launcher activity found! 
[2013-03-19 08:52:54 - GEARS] The launch will only sync the application package on the device! 
[2013-03-19 08:52:54 - GEARS] Performing sync 
[2013-03-19 08:52:54 - GEARS] Automatic Target Mode: launching new emulator with compatible AVD 'sdfs' 
[2013-03-19 08:52:54 - GEARS] Launching a new emulator with Virtual Device 'sdfs' 

我正在做一个android应用程序,编辑它后,我遇到了这个问题。它没有错误,但它也不会启动。我的清单或发布活动有问题吗?模拟器不启动我的项目

更新的清单:

<uses-sdk 
    android:minSdkVersion="8" 
    android:targetSdkVersion="17" /> 

<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
    <activity 
     android:name="com.bpi.gears.MainActivity" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <action android:name="android.intent.action.main" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
     <activity 
     android:name="com.bpi.gears.home" 
     android:label="@string/title_activity_home" > 
    </activity> 
    <activity 
     android:name="com.bpi.gears.profile" 
     android:label="@string/title_activity_profile" > 
    </activity> 
</application> 

</manifest> 

我还是不能运行我的应用程序。

+0

难道你在你的清单文件中添加你的Activity? – CMA 2013-03-19 00:59:22

+0

我应该添加家庭活动?因为它说等待回家.. [2013-03-19 08:53:39 - GEARS]等待HOME('android.process.acore')被启动... [2013-03-19 08:54:47 - GEARS] emulator-5556断开!取消“同步”! [2013-03-19 08:57:43 - GEARS] HOME正在使用设备'emulator-5554' [2013-03-19 08:57:43 - GEARS]将GEARS.apk上传到设备'emulator-5554 ' [2013-03-19 08:57:45 - GEARS]安装GEARS.apk ... – Giant 2013-03-19 01:01:56

+0

发布您的清单 – ElefantPhace 2013-03-19 01:02:14

回答

0

您有相同的活动定义两次。除去这一点,并尝试:

<activity 
    android:name="com.bpi.gears.MainActivity" 
    android:label="@string/app_name" > 
</activity> 

你在你的清单中有这样的:

<action android:name="android.intent.action.main" /> 

它必须是这样的:

<action android:name="android.intent.action.MAIN" /> 

你,而不是mainMAIN

+0

我重新发布我目前的清单检查出来。 – Giant 2013-03-19 01:21:38

+0

是否将MainActivity另存为MainActivity.java? – ElefantPhace 2013-03-19 01:26:30

+0

no sir我有一个单独的MainAcvtivity.java文件...我有3个java文件 主页配置文件和MainActivity文件.. – Giant 2013-03-19 01:27:51