Emulator Not Connecting

Hello,

I'm a coding teaching in Ontario, Canada. Our board is currently blocking app access, so I'm trying to get the emulator working as a stop-gap. However, the emulator doesn't connect either. It repeats GET and OPTIONS connections without actually starting up. I'd appreciate any help or ideas about what's going on! We're using Windows 11. Here's the output it produces:

App Inventor version: 30.265.0
Architecture: AMD64

AppInventor tools located here: C:\Program Files\MIT App Inventor

ADB path: C:\Program Files\MIT App Inventor\from-Android-SDK\platform-tools\adb
Bottle v0.12.13 server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8004/
Hit Ctrl-C to quit.

127.0.0.1 - - [16/Sep/2024 09:25:48] "OPTIONS /ping/ HTTP/1.1" 200 0
127.0.0.1 - - [16/Sep/2024 09:25:49] "GET /ping/ HTTP/1.1" 200 88
127.0.0.1 - - [16/Sep/2024 09:25:49] "OPTIONS /echeck/ HTTP/1.1" 200 0
127.0.0.1 - - [16/Sep/2024 09:25:52] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:25:52] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:25:52] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:25:52] "OPTIONS /start/ HTTP/1.1" 200 0
AVD exists. Starting emulator...
127.0.0.1 - - [16/Sep/2024 09:25:52] "GET /start/ HTTP/1.1" 200 0
emulator: Android emulator version 30.3.5.0 (build_id 7033400) (CL:N/A)
127.0.0.1 - - [16/Sep/2024 09:25:52] "GET /echeck/ HTTP/1.1" 200 39
handleCpuAcceleration: feature check for hvf
added library vulkan-1.dll
Failed to open /qemu.conf, err: 2
C:\Program Files\MIT App Inventor\from-Android-SDK\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: WHPX: Failed to setup partition, hr=c0350005
C:\Program Files\MIT App Inventor\from-Android-SDK\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: failed to initialize WHPX: Invalid argument
127.0.0.1 - - [16/Sep/2024 09:25:53] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:25:54] "OPTIONS /echeck/ HTTP/1.1" 200 0
127.0.0.1 - - [16/Sep/2024 09:25:55] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:25:55] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:25:56] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:25:57] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:25:58] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:25:59] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:00] "OPTIONS /echeck/ HTTP/1.1" 200 0
127.0.0.1 - - [16/Sep/2024 09:26:01] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:01] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:02] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:03] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:04] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:05] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:06] "OPTIONS /echeck/ HTTP/1.1" 200 0
127.0.0.1 - - [16/Sep/2024 09:26:07] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:07] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:08] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:09] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:10] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:11] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:12] "OPTIONS /echeck/ HTTP/1.1" 200 0
127.0.0.1 - - [16/Sep/2024 09:26:13] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:13] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:14] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [16/Sep/2024 09:26:15] "GET /echeck/ HTTP/1.1" 200 39

Pro, or Home?

Good question! Full details:

OS Name : Microsoft Windows 11 Enterprise
OS Version : 10.0.22631 N/A Build 22631

Without more knowledge of how the MIT emulator runs in that environment, I would encourage trying some of the other emulators in the aforesaid FAQ, and once you have an emulator that can be loaded from Windows, side load a recent Companion .apk to that emulator and install it.

See the FAQ for the latest Companion apk.

Once the Companion is running on the emulator, use the Connect->Companion sequence from the AI2 Project under test.

My current personal favorite is BlueStacks 5, but you might need something more formal (ad-free) like GenyMotion.

Thanks for all the tips! I'll start looking into GenyMotion (and possibly others) right now.

If you have Android Studio installed, then you can start any emulator image from Android Studio and App Inventor should find and connect to it. The challenge was that when we last built the emulator package, Google's emulator had support either for Windows 7/10 or Windows 10/11. At the time, we had more users on Windows 7 so we opted to use the slightly older version. We need to publish a new version that will support Windows 11, but since we're just wrapping the Android Studio emulator you can always run your own instance.

Thanks again! I'll give that a try next.