我在 eclipse 中为 android 创建了一个小应用程序,当我按“运行”时,创建了一个新的 AVD,eclipse 告诉我该应用程序已安装在 AVD 上,但我在虚拟设备上找不到它.为什么会这样?谢谢
最佳答案
我认为您可能忘记在 list 文件中添加这些行。我在一个应用程序中遇到了同样的问题,它显示该应用程序已安装,但在模拟器中找不到它。
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
还要确保从运行配置中设置目标 AVD。 Run->Run Configurations->Target,然后从列表中选择 AVD,单击 Apply,然后单击 Ok。 希望对您有所帮助。
关于android - 从 Eclipse 运行后,我的应用程序没有出现在 AVD 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5165705/