I did everying on the troubleshooting page and nothing worked to connect to the emulator, I would always receive the timeout message and the emulator would not boot. Out of curiosity last night I found that the MIT Companion app APK can be downloaded. So today I installed the Companion APK through the adb command, restarted the computer, and everything worked!I have instructions of what I did below and am attaching a .bat file that will automatically install the Companion app (I renamed the Companion app apk to test.apk - If you are worried about my apk, just download the MIT Companion app on your own and change my .bat file to: adb install "MITAI2Companion.apk"). My directions are for a fresh install of App Inventor 2 - If you already have it installed, skip step 1.1. Install the App Inventor 2 software – Download from http://appinventor.mit.edu/explore/ai2/windows.html - Step 1
2. Boot the emulator by going to C:\Program Files\AppInventor\commands-for-Appinventor and double click the run-emulator.bat file (wait for it to fully boot and swipe to open).
3. Install the MIT Companion app (make sure emulator is still running) by:
a. Putting ~installapk-test.bat and test.apk in the same folder as step 2 – I’ve attached these files in a zip since .bat files are not allowed as a direct upload.
b. Double click ~installapk-test.bat This should install the MIT Companion app on the emulator.
c. Wait for the install to complete.
4. Restart the computer
5. Try the site with a program. Click Connect>>Emulator this should boot the emulator and run everything correctly.
– I’ve had it work on a fresh install this way. If it doesn’t work:
a. Boot the emulator (either by step 2, or the Connect>>Emulator should have at least booted the emulator).
b. Swipe to open then click the boxes at the bottom to see installed apps.
c. Open the MIT App Inventor Companion app.
d. Attempt the Connect>>Emulator again with this program open.
Thank you for replying, Steve.
1. The software appears to be installed properly. When I load aiStarter, the
command prompt window opens and I do see white text:
Platform = Windows
AppInventor tools located here: "C:\Program Files
(x86)"
Bottle server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8004/
Hit Ctrl-C to quit.
2. I receive messages implying success when I use
the test URL.
But nothing happen at all when I choose Emulator from within the
browser - no dialog box pops up in the browser, no additional messages are are
shown in the command prompt window - nothing changes. As if I had not even
selected Emulator.
3. I am interested in trying to use the Companion APK as indicated in your
message, but the batch file (zipped) that D Komp mentions is not attached to
your message. Nor have I been able to locate the original message. So I tried
using:
adb install test.apk
But I got a message: