Android Studio emulator missing hardware buttons [

2020-03-01 10:12发布

问题:

I just installed Android Studio 1.0.2 and created a virtual device. When I run an app on the emulator, everything works fine except for the missing hardware buttons (home, menu, and back buttons). I tried to change the Android version of the AVD and the Skin but nothing seems to work.

Does anyone knows how to fix this problem please?

回答1:

Other answers are kind of deprecated now, because the Android emulator interface changed a little bit.

If you need to display hardware buttons on your Android emulator you have to followe these steps:

  1. Open Android emulator devices

  2. Click "Edit this AVD"

  3. Select the first "Change" button beside the "hardware profile of the AVD"

  4. Click "Edit device..." button

  5. Uncheck this toggle.

  6. Restart your emulator and you should see the hardware buttons now.



回答2:

Here is the solution worked for me:

  • Open SDK Manager
  • Go to Tools>Manage AVDs
  • Edit your AVD and change the skin to "Skin with dynamic hardware controls"


回答3:

I could not get it to show the hardware controls. Simply clicking CMD+M (show menu command) does the trick for me.



回答4:

I'm having the same problem with Android Studio 1.0.2, here is a workaround:

  1. Navigate to your sdk folder e.g. (C:\Android\sdk) and open the AVD Manager from there (tools\lib\AVD Manager.exe) Note: I had to copy AVD Manager.exe to (C:\Android\sdk) otherwise it will give you a "Failed to execute tools\android.bat error"
  2. Create your virtual device with hardware skin
  3. Close the AVD Manager

When you open the AVD Manager from Android Studio your newly created device will be listed.



回答5:

You should change the device simulator you use for AVD. In device settings uncheck "Has hardware keyboard".