• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HAXM not a choice during Android Studio install

 
Ranch Foreman
Posts: 914
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I downloaded the latest version and then also one version back.  

In both cases I expected there to be a place where it asks me if I want to install HAXM.   I'm not even sure what it is used for.  Maybe it is part of device emulation.

The install is not asking about HAXM.  I think it should.  

I attached a screen shot of where I thought it should be asking about HAXM.  

Is there a way to install HAXM inside of the SDK if it does not ask for it while doing the install?

Thanks,

Kevin
HAXM-missing.png
[Thumbnail for HAXM-missing.png]
 
Marshal
Posts: 28263
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks to me like HAXM is a run-time thing (hardware acceleration) and so it doesn't belong in a design-time tool.

(The website I happened on explains how to install it in the Android Emulator... don't ask me anything more about that, it went way over my head.)
 
kevin Abel
Ranch Foreman
Posts: 914
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Paul,
Thank you for looking into this.    
My goal is to create a simple Android application.   Maybe just hello world.  It is for fun.  It has already been useful in real life.
I have an Android Note 20 Ultra.  The battery went bad.   I read that it will no longer be supported except for maybe security updates.
I thought that the phone will suddenly get worse and then no longer work.
I was about to purchase a low price phone  because I was thinking that I'd turn on the phone in a few weeks and nothing would work.  

After looking at the SDK I realized that the different versions of Android support certain devices.  The most current version says it works on 100% of devices,  Then each version back drops by some percentage.  It's not like  a cliff where it suddenly will die.    My Phone has the latest version of Android which is 13.   Maybe it won't go to 14.  That is OK.   It will probably take years before new apps will not run on my current version.  

The batteries seem to last about 2 1/2 years.  Then I can take a look at what phones are available.

Thanks,

Kevin
 
Paul Clapham
Marshal
Posts: 28263
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good luck with that project then!
 
Saloon Keeper
Posts: 7601
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the context of Android, HAXM is an accelerator for the emulator. It provides a big speed increase over the non-accelerated emulator. HAXM is available at https://github.com/intel/haxm, but it is no longer being maintained. Maybe that's the reason Android Studio doesn't offer to install it any more.
 
kevin Abel
Ranch Foreman
Posts: 914
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tim,
Appreciated information.
Kevin
 
kevin Abel
Ranch Foreman
Posts: 914
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tim,

I could probably do without the HAXM accelerator.  The documentation shows it as being deprecated anyway.

I don't want to use it, but when I try to create a virtual android phone, it gives and an error saying that it has to have HAXM.

I'm using the current version of the Android SDK  which is Jellyfish.

It also wont recognize my Android phone.  I don't get the usual pop-up when I connect the cable.  The wi-fi choice gives an error saying that it ran into trouble and cannot connect.

I am watching youtube videos on the topic.  Lots of other were stuck in similar ways trying to get a device working.

Thanks,

Kevin
 
kevin Abel
Ranch Foreman
Posts: 914
10
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
https://www.youtube.com/watch?v=TUlK-zAdhQk

This video looks useful.  It has 50K views so I'm not the only one struggling with this.

I will try the steps now.

Kevin
 
kevin Abel
Ranch Foreman
Posts: 914
10
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The video instructions worked.  I am writing down the steps from what I wrote on paper and from memory.  Some points may be missing.  I recommend watching the wonderful video[not sarcasm] for details.

close android studio if open

Open windows control panel (type control panel in the windows search area)

programs

turn windows on/off

find hyper-v  

Put in check marks on all choices that allow it.  Save.   Notice some won't allow you to add a check and we need to.

Restart PC.  Hold down F10 key or what ever you use to get to BIOS during start up of windows

Go to Device Configuration at the top

Put a check mark in Virtualization Technology

Save

Exit

Reboot PC

Go back to Control Panel.

Programs

Turn windows on/off

Hyper-V

Now you should be able to enter the check marks in the other places after expanding the branch.

My notes say to put a check mark in Now Active.  I forgot what this means.  Maybe it is the checkbox.

Restart PC

Open Android SDK

Set up your emulator.  I don't remember the details on this, but if you saw the error we had at the start you probably did this already.

Note: finding this fix was torture.  I think that HAXM was an accidental Red Herring.  It seems as if it is not needed once the fix is done.

If you are reading this,  and try it, please add missing steps.

I hope to get a cow for this.  

Thank you everyone.

Kevin





 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic