Android 应用程序无法在“运行配置”中找到要运行的 AVD 目标
我是 Eclipse 和 Android 的新手。我成功完成了“Hello Android”教程。它在我创建的两个 AVD 上编译、下载并运行良好......“first_avd”和“second_avd”。为此,我突出显示该应用程序,右键单击,选择“运行方式”--> “运行配置...”,--> “目标”,两个 AVD 都显示,我选择其中之一,它就起作用了。
然后我开始使用记事本教程。但我无法像上面那样运行它,因为“运行配置...”--> “目标”不显示我的 AVD;它呈灰色并显示“没有可用的 AVD”。
但是,如果我只是选择“运行方式”--> “Android应用程序”,“first_avd”似乎被自动选择,应用程序加载并运行。 -或者- 如果“first_avd”或“second_avd”已经启动,则应用程序将在启动的 AVD 上加载并运行。所以应用程序运行良好!
我可能在这里遗漏了一些非常简单的东西,但我一整天都在闲逛,检查谷歌,直到我找不到更多的问题要问,但没有结果。两个 AVD 都有 Platform 4.0 和 APILevel 14。“Hello Android”和“Notepadv1”都包含在其清单中。我应该能够选择 AVD 来运行“Notepadv1”,但不能。
任何提示将不胜感激!
I am new to Eclipse and to Android. I successfully completed the "Hello Android" tutorial. It compiled, downloaded and ran fine on both of the two AVD's I created ... "first_avd" and "second_avd". To do this, I highlight the application, right click, select "Run As" --> "Run Configurations...", --> "Target", both AVDs are shown, I select one or the other, and it works.
I then started on the Notepad tutorial. But I can't run it as above because "Run Configurations..." --> "Target" displays neither of my AVDs; it is greyed out and says "No AVD available".
However, If I just select "Run As" --> "Android Application", "first_avd" seems to be automatically selected, the application loads and runs. -or- if either "first_avd" or "second_avd" is already launched, the application will load and run on the launched AVD. So the aplication works fine!
I'm probably missing something really simple here, but I've been horsing around with this all day, checked Google until I can't figure out any more questions to ask, with no results. Both AVDs have Platform 4.0 and APILevel 14. Both "Hello Android" and "Notepadv1" include in their Manifest. I should be able to select an AVD to run "Notepadv1", but can't.
Any hints would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
转到 AVD 管理器并编辑 VD,使其使用与项目目标的 API 级别相同的 API 级别
Go to the AVD manager and edit the VD so that it uses the same API level as your project target's API level
我也是android开发新手,最近遇到了类似的问题。
当您创建 Android 项目时,它会要求您提供“目标”,然后您选择可用版本之一(android 3.0、4.0.3 等)。如果您选择的版本高于 AVD 上运行的版本,它会告诉您找不到任何版本。
因此,请检查您是否有运行该版本的 AVD,如果没有,请使用 ADV 管理器创建一个。
这对我有用。
I'm new to android development too and i ran into a similar problem recently.
When you create an Android project it asks you for a 'target' and you choose one of the available versions (android 3.0, 4.0.3, etc). If the version you choose is higher than the ones running on your AVD than it will tell you that it cannot find any.
so check that you have an AVD running that version, and if not than create one by using the ADV manager.
that worked for me.