Running application on emulator running older SDK
I have a project that builds against Android v2.1 . I can run it fine on a phone running 1.5 but when I try to launch it with an emulator run开发者_运维知识库ning 1.5, the emulator doesn't show up on the list of available AVDs. I have the <uses-sdk android:minSdkVersion="3"/>
tag in my manifest but it doesn't make a difference. Any ideas?
thanks
Another possibility is to open the Run Configurations settings, and then in the Target tab, to choose "Manual". When you run, you will get a dialog box allowing you to start any of the installed AVDs or to run in an existing AVD (if any are already running).
The older sdk emulators have a big red X but i was able to click on them anyway. It feels like running a stop sign, but it works :D
Turns out building against the Google APIs for version 2.1 will let you run on older emulator sdks, using just 2.1 core libraries won't let you do this.
Run Configuration settings don't solve the problem. You need to open some other Android project with lower SDK target, launch emulator there and then it allows you to launch app from project with higher SDK target.
I'm using this for project with SDK 10 running on SDK 8 emulator.
The trick i used to run was
- Open "Android Virtual Device Manager", showing all my emulators.
- Select the emulator, i want my application to run on.
- Click Start button to run my selected the emulator first.
- With target emulator already running in background, ran my application and choose already running emulator to install my app on it.
Worked for me
精彩评论