Hyper-V and Running Android Studio [duplicate] - android

To my knowledge, an x86 Android emulation using Intel's Hardware Accelerated Execution Manager and Windows 8 Hyperv cannot be run concurrently at the time of this writing.
The best answer would allow them to run concurrently (probably not currently possible).
The most common workaround is to uninstall the Hyperv feature completely. If you actually need to use Hyperv this is painful. A better work around can be found here. http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/04/14/creating-a-no-hypervisor-boot-entry.aspx . This forces you to reboot, but at least you're not having to constantly uninstall/reinstall Hyperv.
I'm looking for a solution which doesn't require anything to be uninstalled and doesn't require a reboot.

I don't know if this is good answer for you. I had similar problems with x86 emulator. I've switched to Genymotion - Google Play Services are working fine, and it's really fast + official plugins for Eclipse.
But you need to install VirtualBox (but it's free) so this shouldn't be a problem.
Genymotion site: http://www.genymotion.com/

This looks like it will be the answer.
http://blogs.msdn.com/b/visualstudioalm/archive/2014/11/12/introducing-visual-studio-s-emulator-for-android.aspx
I won't mark it as answered until I actually try out the RTM bits (it's in preview now), but it's a Hypver-V based android emulator. The first 2 pain points the blog post claims to solve with the new emulator are Slowness of other emulators and Conflict with Hyper-V on Windows.

All you have to do is temporarily disable the hyper-V with a very simple command I found. You could find the detail on the link below.
https://superuser.com/questions/519991/vmware-player-is-not-working-after-installing-hyper-v-on-windows-8-pro

The android emulator is now supported on Hyper V (It's in preview now): Details here: https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/

Related

Workaround for Android Studio AVD on windows 10

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/

Android Studio and Ryzen CPU?

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?

Xamarin Android Player is unable to run API 21 or higher emulators

I'm using Xamarin Studio and Xamarin Android Player on my windows 10 PC.
I'm having trouble starting Lollipop/Marshmallow (API 21/23) devices using the XAP, but on the other hand, launching Kitkat (API 19) works prefectly.
I've downloaded the required android SDK, tried reinstalling everything again and again but nothing works.
It seems wired, because it is not a problem with Virtual Box, nor with my PC or my XAP installation (if it was, than why Kitkat works?).
I've tried every solution I could possibly find, but nothing works.
Any ideas on what could cause this problem?( If further information is required, I will be happy to add :)
EDIT
It does not matter whether I start the devices through VS/XS/XAP. It all comes down to the same problem, but for the sake of simplicity, let's say I'm running them directly through XAP. Here is a screen shot of what happens when I launch Lollipop (which is API 22, and not 21, for a strange reason) :
For like 5 minutes, the following occur:
Than, forever:
And after a few hours it says booting or something like that, and than restarts to the first position.
With Kitkat, it just starts :).
you probably missed the intel HAXM update.. may be a possible duplicate: Android 5.0 (API Level 21) AVD not launching Intel Atom x86_64
First off, it's difficult to determine the problem without more information. Please list or screenshot the build error(s) you receive when you try to debug your app on a XAP emulator.
But on a hunch... within the past week, I had a problem with similar symptoms. In my case, I had to update project packages in order for my Xamarin Forms project to run on the higher Android APIs.
Reference on how to update packages: https://developer.xamarin.com/guides/cross-platform/application_fundamentals/nuget_walkthrough/#Package_Updates
It might be that hyper-v is causing the problem: "VirtualBox and Hyper-V cannot co-exist on the same machine".
Try to disable it using bcedit as explained in the link.
For further reference, see this discussion
After launching xamarin android player, manually launch virtual box.
You should see the device listed on the left. There is a good chance it will say "stalled." If it says anything other than "Running," try reseting it or starting it.
I also had problems with XAP and my solution was to use Genymotion instead.
Did you try Genemotion
I think it is best Android emulator.
I would post a comment but my reputation is too low.
I don't know if this emulator works with Xamarin studio but if you use Visual Studio it may be an option for you.
Here is the solution:
I had the similar issue and fix the issue as follows.
delete the existing device simulator
reinstalled the simulator again
deploy the solution again.

Developing Android Apps - Can't use any android emulator

I searched for days to find a way to start programming android applications however I failed every single try.
First I installed Android Studio on my Windows 7 computer, everything went fine.
After installation I tried to start a project and debug it and appeared my first error that you can see in the link below.
http://i.stack.imgur.com/q9BlJ.png
Then I searched here on stackoverflow and I searched on every single website that is related to this error. What did I learn?
I need to install an Intel package on SDK Manager
I also need to install an executable present on appdata android studio directory
I MUST disable or uninstall hyper-v to install the exe file I spoke on the step before
I searched on how to get this hyper-v out of my computer and I found many ways however when I tried this ways and then tried to install the exe file, it shows this message:
http://i.stack.imgur.com/gQjON.png
I don't know if my computer has hyper-v, the only way I can't do is going to my BIOS and disable it because I don't know the keys I need to press to show my computer BIOS (on the startup it doesn't show any label about the BIOS keys).
My computer model is Sony VAIO VGN-NS11Z_S, if someone knows the BIOS keys please tell me.
I can't use the emulator to try out my app so I gave up from Android Studio and I started with Eclipse and the ADT Plugin.
My problem is still the same, I don't if it is because hyper-v but the android emulator don't work.
Everything is fine but I can't test my app so I can't develop them too...
I really appreciate any help, I want to create Android apps so much, please give me an alternative or a way to fix my problems.
Thank you
You can try using Genymotion. It also needs some sort of hardware acceleration but give it a try.
It can't be that hard to find out the keystroke for your BIOS (EDIT: okay, it can be obviously for some devices). Just google for "your mainboard manufacturer + bios". I found this thread, one post even mentions Hyper-V.
Android Studio and Eclipse have nothing to do with the Emulator. The Emulator is part of the Android SDK which is identical for both IDEs. Throw away Eclipse (at least for Android).
As a last resort, run the Emulator with an ARM image instead of the i86 one, I think it runs without HAX and without hardware acceleration. It's damn slow though.
If you want to do serious Android development, there's no way around a real device. There's plenty of cheap options. That's just a little heads up though, I understand though that you still need an emulator for development.
Here's an interesting link on Sony's website about a BIOS update that may help (disclaimer: BIOS updates are not guaranteed to be safe, install at your own risk and make sure it's the exact right one for your computer):
http://www.sony.co.uk/support/en/content/cnt-dwnl/prd-comp/EP0000208387_4486/VGN-NS11Z
But also within that link it mentions to press F2 to get into your BIOS. Does that work for you?

Better way to use an Android x86 HAXM accelerated emulator on Windows 8 with Hyperv

To my knowledge, an x86 Android emulation using Intel's Hardware Accelerated Execution Manager and Windows 8 Hyperv cannot be run concurrently at the time of this writing.
The best answer would allow them to run concurrently (probably not currently possible).
The most common workaround is to uninstall the Hyperv feature completely. If you actually need to use Hyperv this is painful. A better work around can be found here. http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/04/14/creating-a-no-hypervisor-boot-entry.aspx . This forces you to reboot, but at least you're not having to constantly uninstall/reinstall Hyperv.
I'm looking for a solution which doesn't require anything to be uninstalled and doesn't require a reboot.
I don't know if this is good answer for you. I had similar problems with x86 emulator. I've switched to Genymotion - Google Play Services are working fine, and it's really fast + official plugins for Eclipse.
But you need to install VirtualBox (but it's free) so this shouldn't be a problem.
Genymotion site: http://www.genymotion.com/
This looks like it will be the answer.
http://blogs.msdn.com/b/visualstudioalm/archive/2014/11/12/introducing-visual-studio-s-emulator-for-android.aspx
I won't mark it as answered until I actually try out the RTM bits (it's in preview now), but it's a Hypver-V based android emulator. The first 2 pain points the blog post claims to solve with the new emulator are Slowness of other emulators and Conflict with Hyper-V on Windows.
All you have to do is temporarily disable the hyper-V with a very simple command I found. You could find the detail on the link below.
https://superuser.com/questions/519991/vmware-player-is-not-working-after-installing-hyper-v-on-windows-8-pro
The android emulator is now supported on Hyper V (It's in preview now): Details here: https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/

Categories

Resources