简体   繁体   English

无法在AVD中运行较旧的Android目标

[英]Can't run older Android targets in AVD

I'm trying to test an app in an AVD with Android 3.1 as the target but it is running terribly slow and doesn't seem to respond. 我正在尝试以Android 3.1为目标在AVD中测试一个应用程序,但它的运行速度非常慢,而且似乎没有响应。 I created a new AVD with Android 2.1 as the target but this AVD does not show up in the run configurations in Eclipse even when refreshed and restarted. 我以Android 2.1为目标创建了一个新的AVD,但是即使刷新并重新启动,该AVD也不会显示在Eclipse的运行配置中。

Does anyone know why I cannot run older versions of Android? 有谁知道我为什么不能运行旧版本的Android?

I've found that the targetSdkVersion in the manifest file affects what shows up in the run configuration. 我发现清单文件中的targetSdkVersion影响运行配置中显示的内容。 Setting the target selection mode to Manual in the run configuration should open a popup when you run it that lets you select any AVD, not just ones that meet the targetSdkVersion. 在运行配置中将目标选择模式设置为“手动”时,应在运行时打开一个弹出窗口,使您可以选择任何AVD,而不仅仅是满足targetSdkVersion的AVD。

Try to increase the emulator RAM to 1024Mb. 尝试将仿真器RAM增加到1024Mb。

Go go to AVD Manager click on the emulator and then edit. 转到“ AVD管理器”,单击仿真器,然后进行编辑。 You should find Device ram size and set the new value and then "Edit AVD". 您应该找到Device ram大小并设置新值,然后单击“ Edit AVD”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM