问题
I mean I can't type from my laptop keyboard into android emulator anymore. Virtual and on-screen keyboards are working fine.
回答1:
I had the same problem after upgrading to Tools version 20. I had to Edit the AVD to add an option as follows:
- From Eclipse, Go to AVD Mananger.
- Select the particular AVD and click on Edit
- Go to the Hardware section, click on New.
- Select the Property Name : Keyboard Support
- By default, it is added with a value of 'no'. Just click on the value column and change it to 'yes'.
- Click on Edit AVD again.
This will add a property hw.keyboard=yes in config.ini file for the AVD. And it should work fine from there.
来源:https://stackoverflow.com/questions/11259888/keyboard-stopped-working-on-intel-x86-android-emulator-after-upgrading-to-adt-20