Windows 10 now uses a couple default features, Credential Guard and Device guard, that use Hyper-V, along with the non-default option of Core Isolation. Unfortunately at this time, HAXM refuses to install with anything Hyper-V enabled. x86 images refuse to run without HAXM.
I found an answer that said to use the ARM images but none newer than nougat are available and I'm specifically trying to troubleshoot compatibility with sdk29 or android 10.
Short of sacrificing security for a small bit of usability (disable core isolation, and device&credential guard) and heaven knows Windows is not known for being highly secure in a non reduced security state, is there any workaround for this at the moment?
I'm running Android Studio 3.5.3 on Windows 10 Home x64 build 1909.
This issue seems to have been resolved in a later Android Studio release.
See https://devblogs.microsoft.com/visualstudio/hyper-v-android-emulator-support/
Related
I have HP Laptop with the following configuration -
Processor-Intel Core 2 Duo.
Windows - 7 Home Premium - 32-Bit (SP-1).
Ram - 4GB.
No graphics card(actually some inbuilt graphics support of 256MB I am not sure).
I have installed android studio V3.0(for 32-bit) but when I tried to launch the emulator, (even with arm support) it just starts up and crashes after startup.
I get an error like your processor does not support VT-x. ( I have also checked with Microsoft HAM tool, that my processor does not support it, so I need to use system image with ARM support.)
Now my question is whether I can run ARM support emulator on my machine or not, if yes please tell some crisp and easy steps to do so, since I have also tried 2.7" QVGA screen( lowest resolution) And 128MB Ram allocation, it just crashes after startup with error like-> (Your program has stopped working).
Please suggest any workaround and I shall be very thankful to you.
ARM emulator is very resource intensive, even for current machines. I suggest you to use a real device connected to your development machine.
An alternative could be GenyMotion https://www.genymotion.com/
Android Studio V3.0 doesn't support many features for windows 32 bit System. I recommend you to use Android Studio v2.2.3 instead of 3.0.
U gonna need to enable the VT-X option. Which can be done in the boot menu options. Vt-X is disabled by default in HP laptops.
And HAMx can be downloaded from Intel website. This will help in booting them in the emulator. But with your system configuration, i recommend u stick to eclipse - android.
I know it could be marked as duplicate. But none of the threads helped me, so I decided to make my own.
I'm a Java back-end developer and I've decided to learn some Android stuff.
I worked on Android Studio several years ago having i5-4570 processor. Then I gave up. Now I see Android Studio is really really interesting, so I have downloaded it.
Now I have Ryzen 5 1600 processor. It's really great... but...
None of the Android emulators work for me.
What have I tried?
Android Studio built-in emulator. (Doesn't support AMD-V)
Microsoft Visual Studio Emulator (Crashes Windows 10 and bootloops motherboard till a hard-reset...)
Genymotion (personal use) emulator (Throws a BSOD with error SYSTEM_SERVICE_EXCEPTION)
I don't have any idea what to do now, I don't want to use USB debugging solution because it's... weird and probably slow, because my phone is really old.
Any suggestions? I'm really starting to give up with android development by now.
Use Bluestack 3 or N (Beta). Works with AMD V hypervisor. Make sure your BIOS had enabled the SVM virtualisation settings. Start Android Studios after the Bluestack program is runnning. The android studios should detect the emulator and display the console messages when you finally start Android Studios. Works great on my AMD Ryzen 1600 now.
The processor you've mentioned is a new one. Maybe there aren't any emulators which can run with your processor. Since you haven't included Bluestacks, you may want to try it once.
Also Using a real Android phone is actually faster than using an emulator because while running an emulator the CPU is shared between Android Studio and the emulator which makes build process slower.
And if you feel weird because of the phone which is wired with a cable, you can use wireless debugging. Just search for it in Google or the play store.
Genymotion should work.
VirtualBox (the software behind Genymotion) still has some conflict problems when Hyper-V is enabled in Windows. Try to open the Genymotion emulator image in VirtualBox and under its Settings -> System -> Acceleration, try changing the Paravirtualization Interface and see if that helps.
If that doesn't work, Disable Hyper-V under Programs and Features -> Turn Windows features on or off -> Hyper-V and try it again.
Please try new AndroidStudio 3.1.3 with windows 10
https://www.youtube.com/watch?v=547DXRq8zAo
currently using Ryzen 1600 with ubuntu 17.10 on b350 motherboard
works like charm!!!
Also tested on Windows; butter smooth performance with the new drivers by Google
All Ryzen CPUs are compatible now for Linux as well as windows.
I asked Gennymotion n they said it should.
u need to enable amd-v in bios?
I've been using Linux rather then Windows as my primary operating system, mostly using Jetbrains IDEs and Android Studio. But, I have one question/issue which still cannot solve. Why I can't have hardware rendering in Emulated Performance, upon creating Android Virtual Device? Whenever I choose that, it's only saying: waiting for device to come online..., I've installed all libraries I've could possibly find on Google. Using Software Rendering is awfully slow, making my application testing almost impossible. Gradle build also takes very long time.
Do I really need to switch over to Windows? (It's working on Windows, so I'm assuming I'm missing something?)
VT-d is disabled in BIOS as I couldn't even make AVD with it being enabled.
Thanks
I recently set up Android Studio on my computer (Lenovo E535, AMD Processor) on both Windows 7 and Arch Linux.
I got the emulator to run quite fast in Arch Linux and on Linux, I don't get the warning "Your CPU does not support required features (VT-x or SVM)".
Windows still shows me the warning. Virtulization is definitely enabled in the BIOS and it is definitely possible on my machine. Does Windows block SVM or does it not find it? Is it my Android Studio installation?
Here's what I found out for the next person who comes across this error:
Android Studio emulator won't run on Windows with an AMD processor. The error message is kind of misleading, as it suggests the problem is with the CPU. But it is within the troubleshoot message: "Windows/OSX computer with an Intel processor".
Solutions could be installing Linux and running Android Studio on that (which might come with its own issues), using a physical device for testing or using the slow ARM images.
To add to #MelanieB.'s answer you can also alternatively download an external emulator and use that for testing.
For example this one: https://www.visualstudio.com/vs/msft-android-emulator/
This question has many parts.
Some info about my system:
64-bit Ubuntu Linux
I am wondering what the stock emulator is that comes with Android Studio (A.Studio) (if indeed it has a name).
A helpful answer would include comparing this emulator with other emulators. A list of pros and cons of using each different emulator would also be helpful.
Perhaps there is a more fundamental ~thing~ about using different emulators; information on that is welcome if anything comes to mind.
Finally, i have never used an emulator besides the one that has come with Eclipse or A.Studio. What do I need to know in order to plug any emulator into any IDE? I have had issues with IDEs being "fragile" and breaking frequently, FYI.
You can use genymotion, for fast speed the quality, both for the eclipse and Android studio, get it here.
Also you can set up the Google play service for using Google Maps and downloading apps from Google play store.
Get the package and how it use it , please refer to here.
The emulator used by Android Studio is the exact same one used with Eclipse. It is in fact included with the Android SDK (which is in turn included in Android Studio) and used by various development environments.
The way it works depends on what kind of system image you use it with. For most recent Android versions, there are 2-4 different system images - arm, arm 64-bit, x86, and x86 64-bit (the 64-bit ones are Lollipop only, and fairly experimental at this stage of the game [early 2015]).
There are also Google API versions of these images (they include various Google apps such as Google Play Services) which can be used if these components are needed by your app.
For development purposes, the x86 system images are your best bet as performance is vastly improved by the emulator not having to emulate the ARM architecture - you need to use HAXM (by intel, also available in the Android SDK) to get any real speed benefits with x86 images though. The emulator also provides GPU acceleration (it must be manually enabled for each emulator device) which allows it to use your physical GPU for rendering instead of emulating these operations in software.
The way the development environment (Android Studio) connects to the emulator is via ADB (Android Debug Bridge). This means that it can work with virtually any emulator (such as Genymotion, which runs via VirtualBox). However, there is native support for using the Android Emulator from within Android Studio (this is configured by selecting emulator in the Run/Debug configuration)...when using another emulator (such as Genymotion) you should select USB device (in Run/Debug configuration) and make sure that the ADB instance is connected to your emulator via TCP (Genymotion does this for you automatically at startup).
This should give you enough information and I will not re-post all the various instructions on how to do any of the above as they have been posted as answers to various questions here on SO.