I have MacOS Sonoma 14.0.
Installed: MIT_App_Inventor_Setup_3.0rc3.dmg
MIT: 2.46
For certain features (ie User Interface Switch) I get an error when trying to run the emulator.
I need the MIT to be updated.
I go to Help/Update companion, which than goes through this whole process and MIT 2.76u is loaded. Once that happens, all is good.
Question. I do this EVERYTIME I log in and start up the emulator. Is there any way to load 2.76u directly?
Thank you.
After upgrading the emulator image, it should remain at that version unless you do a hard reset. How much free disk space do you have remaining on your machine?
Thank you for your response. I have 30 gb of 128gb free. I have done hard resets. Maybe I don't need to?
That's correct. A hard reset returns the emulator image to its initial state at the time we published it, with whatever version of the companion was current at that time. In most cases, if you're just looking to stop the emulator you should use "Reset Connection"
Gotcha. Thanks again. I'm assuming there's no way to replace the installed version with the updated one. Whether I could get in to the APK files and tweak or otherwise.
There is a way to do it but it's fairly technical. You'll need a Linux VM.
- Locate userdata.img.gz in /Applications/AppInventor/extras/App_Inventor.avd
- Copy it to the Linux VM
- Run
gunzip userdata.img.gz to decompress the file
- Run
mkdir tmp to create a temporary directory to mount the file system
- Run
sudo mount -t ext4 userdata.img tmp to mount the disk image
- Change directory by running
cd "tmp/app/MIT AI2 Companion"
- Update the APK with
curl https://ai2.appinventor.mit.edu/companions/Emulator.apk > MITAI2Companion.apk
- Change directory back up to the top level with
cd ../../..
- Unmount the disk with
sudo umount tmp
- Recompress the disk image with
gzip userdata.img
- Copy
userdata.img.gz over the original in /Applications/AppInventor/extras/App_Inventor.avd/
At this point, you will need to hard reset, but when you do the new userdata.img should have the latest companion.
Wow! thanks so much for taking the time to write that out. Even if I fail, I'll try it.