I’m still trying to resolve my emulator problems. After I make an app and test it on my actual device, I’d like to see how it runs on some emulators.
I think uninstalling Android Studio and re-installing it messed things up, but it might have been something else was updated, like VS. Here is my current situation.
I can launch the Android device manager from VS. I configured one and started it. Takes a while to come up, but it is up and responding to clicks, etc.
The name of the device is “mydevice”. In Water, at the right side it shows:
"Android emulator mydevice 1(Not booted up)
So it can’t run on that emulator. Not sure where the “1” came from, but I did rename the emulator from “My Device” to “mydevice” because I was afraid it was having trouble finding a name with a space in it.
In VS, CrossBox shows:
“local: Android Emulator mydevice 1”
But doesn’t say it isn’t booted. But when I try to run, I get:
------ Build started: Project: org.me.androidapplication7, Configuration: Debug ------
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
Running C:\Users\mtied\AppData\Local\Android\sdk\tools\emulator.exe -avd mydevice_1 -verbose
Emulator has terminated.
Error debugging project: Android Emulator mydevice 1 failed to boot. Missing emulator engine program for 'x86' CPU.
That is the same message I get in Water in the “debug console” if I try to run an app in Water.
I tried going into the SDK manager in VS and added a bunch of x86 things, but it didn’t make a difference.
I also read on the web that there was an update a while ago that changed the emulator from being in tools/emulator to emulator/emulator (or vice versa). I see emulator.exe in BOTH, so I don’t think that is a problem.
Are there clues here is to what is screwed up and how to fix it?
… time passes …
I found something on the web about setting ANDROID_SDK_ROOT environment variable. When I did that, Water DID launch a new emulator I created that used Nougat 7.1.
Maybe the path environment variable was there and the uninstall removed it and then the re-install did not add it back? This might be the problem. Trying things out now…