每次我从Eclipse运行我的Android项目时,它都会启动一个新的Android虚拟设备来运行它。如何让它在现有的AVD中运行?
编辑运行或调试配置(运行=>运行配置)并设置目标模式手册。
For those who the AVD always restarting (And ADB never find your device online).
cd "C:\\Program Files (x86)\\Android\\android-sdk\\platform-tools>"
for me) adb kill-server
adb start-server
adb devices
Your devices should appear.
create a new AVD manually and also Run your Android
Project with following steps:
Select the AVD you just created and click Apply .
With this, your application will always ask you before running.
how can i deal with this?
It can be dealt with in many ways. You don't mention how you expect it to behave.
If an android device is plugged in the usb slot and its version is > android:minSdkVersion
you have set in your manifest file, the app should automatically run on your device.
if you want to run on an AVD, right click on project -> Run as -> Run configurations ->Target -> Check an already existing AVD. Everytime you run the app, it will load on that AVD.
Follow these steps:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.