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

前端 未结 6 473
名媛妹妹
名媛妹妹 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:02

    Install Android on a Cloud Virtual machine (AWS windows server)

    Since my machine was slow with Android Studio I created a virtual machine on windows server on AWS with the best processor and RAM configurations, which gave me seamless programming and execution experience. But to use the emulator I face the error listed below.

    Error:
    Unable to install Intel HAXM
    HAXM doesn't support nested virtual machines.
    Unfortunately, the Android Emulator can't support virtual machine acceleration from within a virtual machine.
    Here are some of your options:
     1) Use a physical device for testing
     2) Start the emulator on a non-virtualized operating system
     3) Use an Android Virtual Device based on an ARM system image (This is 10x slower than hardware accelerated virtualization)
    

    Since we can't connect our device to the Cloud machine, the option #3 is the best way to go.

    Once the Android studio is installed,

    Go to Tools -> Android -> AVD Manager
    
    Click "Create Virtual Device"
    
    Select which device you want to use from the list (i.e Nexus 5) and click "Next".
    
    Here you're given a list of android release versions. Look at the ABI column. 
    
    Choose "Armeabi-v7a" for whichever API Level you want.
    
    Hit "Next" and modify name/size, click "Finish" when done.
    
    if 'Next' doesn't work, download the desired image and continue
    

提交回复
热议问题