[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 :(得分: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" />
您有main
而不是MAIN