Android Studio running on VMware virtual machine: KVM is not installed

前端 未结 6 475
名媛妹妹
名媛妹妹 2020-12-31 08:08

I\'m running Android Studio on a Ubuntu VMWare virtual machine. The problem is that when I try to run an app with the AVD emulator I get the following errors in the console:

6条回答
  •  醉话见心
    2020-12-31 09:01

    I faced this exact same error while running AVD in a cloud VM, adding a license solved it.

    So, VMWare any cloud provider will not provide you the ability to create nested virtual machines. It is blocked by default so the Android studio would work but you would not be able to run an AVD, that’s not much useful.

    To allow this you would then add the following license while VM creation-

    https://compute.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx
    

    Note: This works only for GCP, you need to add different licenses for VMWare

    This was just a short just of what you would do and the major steps involved, however, I highly recommend you to read this blog by me which provides a step by step guide to doing so.

    I also urge you to check this answer by me where I explain this in greater detail for GCP.

提交回复
热议问题