Android Emulator: select AVD (Android Virtual Device) to run by default

随声附和 提交于 2019-12-18 10:21:49

问题


I have added a second Virtual Device to test a different screen resolution (QVGA), but now I wanna switch back to the first AVD (HVGA) again. How can I set the virtual device in Eclipse to be used by default or even specifically for my project? In the properties I can only set the API level.

I also couldn't find any information in the command line tool documentation to set this manually.


回答1:


In Eclipse, click on Run in the toolbar then Run Configurations. Select your application and click on the Target tag. You can then select which AVD to use or set it to manual so it asks you each time you run the app.

Note that if the AVD's Android version is lower than the Minimum API level set in the Manifest, the AVD will not appear in the list.




回答2:


In AndroidManifest.xml, see that your minSdkVersion and targetSdkVersion match your device.




回答3:


In new Eclipse Kepler version, right click your project, then click Run as->Run Configurations->"Target" tab, you will see all AVDs in the list, select one as a preferred one, then "Apply" and "Run"



来源:https://stackoverflow.com/questions/1536384/android-emulator-select-avd-android-virtual-device-to-run-by-default

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!