Basics: Project 107b How to install emulator for MIT App Inventor 2


Basics: Project 107b

Project name: How to install emulator for MIT App Inventor 2

Tags: MIT App Inventor 2, Arduino, Emulator

Attachments: None

General

We will learn how to setup the MIT App Inventor 2 emulator on different OSes and how to update the MIT App Inventor.

1. MIT App Inventor 2 emulator setup on Mac OS X

1. To get the Android emulator for your Mac, download and install the Setup Package. Click the blue link below to begin the download.

  • Version 3.0: For macOS 10.10 (Yosemite) and up. If you previously had the emulator installed, you may need to perform a hard reset.
  • Version 2.3

2. Double-click the downloaded file to start the installer. (You may need to look in your browser’s downloads folder. The file is named AppInventor_Setup_v_X.X.dmg where the X.X is the version number.) If you get a message that you cannot install an application from an unidentified developer, control-click the app icon, then choose Open from the shortcut menu.

MAC installation

3.Click Continue.

4.Read and accept the software license agreement.

MAC installation

5.On the Standard Install screen, click on Install button. Don’t change the install location.

6.If asked, enter your password to confirm that you really want to install software. Click on OK button.

7.The installer confirms that the MIT App Inventor package was installed. Click on Close button.

8.If you are updating a previous version of the software, log out and log back in before continuing to use MIT App Inventor 2.

2. MIT App Inventor 2 emulator setup on GNU/Linux

You’ll need sudo privileges to do the installation.

Please note: The setup programs are 32-bit software. If you have a 64-bit system you may need to install libraries the let your machine run 32-bit software. One way to do this is to run the command sudo apt-get install lib32z1, but this might not work on all GNU/Linux distributions, and you may need to do some investigation for your particular system.

If you have previously installed the MIT App Inventor software, you should remove those files before installing the new software:sudo rm -rf /usr/google/appinventorsudo rm -rf ~/.appinventor

Instructions for systems that can install Debian packages

Use these instructions for systems that can install Debian packages (e.g. Debian or Ubuntu):

Note: If you previously installed the setup package for MIT App Inventor Classic, you should remove it, since it can interfere with the new installation. Remove the package with sudo apt-get remove appinventor-setup.

  1. Download the Appinventor Setup installer Debian package. This is a file named appinventor2-setup_2.3_all.deb. It is a Debian package installer file. The place it will end up on your computer depends on how your browser is configured. Typically, it will go into your Downloads folder.
  2. If your system can install packages simply by clicking on the package file, then do that.
  3. If your system doesn’t support clickable package installers, then navigate to the directory where the file is located and run the command sudo dpkg –install appinventor2-setup_2.3_all.deb With either method, you might need to ensure that the deb file as well as the directory it’s in are world readable and world executable. On some systems, sudo does not have the default privileges to read and execute all files.
  4. The software will be installed under /usr/google/appinventor.
  5. You might also need to configure your system to detect your device. See the Android developer instructions at Setting up a device for development. Follow the instructions under the step “set up your system to detect your device” in the bullet under “If you’re developing on Ubuntu Linux”.

Instructions for other GNU/Linux systems

  1. Download the Appinventor Setup installer tar file. This is a file named appinventor2-setup_2.3.tar.gz. It is a Gzip compressed tar file.
  2. Install the files using a method appropriate to your operating system. You’ll need to check that the commands-for-Appinventor directory ends up under /usr/google/appinventor.

The aiStarter program manages communication between the Web browser and the Android device. It must be running whenever people use the emulator or the USB cable; it does not need to be running when people are using the wireless companion. Whenever someone logs in to use MIT App Inventor with the emulator or USB, they will need to start aiStarter. This can be done with the command /usr/google/appinventor/commands-for-Appinventor/aiStarter & For convenience, you might want to arrange for this command to be run automatically whenever someone logs in, or when the system starts. The precise way to do this depends on which GNU/Linux distribution you are using. Consult the documentation for your distribution.

In most cases, MIT App Inventor should be able to locate the installed Setup software on its own. If it does ask you where the software is located, the directory path you should enter is /usr/google/appinventor/commands-for-Appinventor

3. MIT App Inventor 2 emulator setup on Windows

The installation of MIT App Inventor on Windows OS has two parts:

  1. Installing the MIT App Inventor 2 software. This step is the same for all Android devices, and the same for Windows XP, Vista, Windows 7, 8.1, and 10.
  2. If you choose to use the USB cable to connect to a device, then you’ll need to install Windows drivers for your Android phone.

Please note that: MIT App Inventor 2 does not work with Internet Explorer. For Windows users, we recommend using either Chrome or Firefox as your browser for use with MIT App Inventor.

You must perform the installation from an account that has administrator privileges. Installing via a non-administrator account is currently not supported.

If you have installed a previous version of the MIT App Inventor 2 setup tools, you will need to uninstall them before installing the latest version. Follow the instructions at How to Update the App Inventor Software.

  1. Download the installer.
  2. Locate the file MIT_Appinventor_Tools_2.3.0 (~80 MB) in your Downloads file or your Desktop. The location of the download on your computer depends on how your browser is configured.
  3. Open the file.Install
  4. Click through the steps of the installer. InstallInstallInstallInstallInstallInstallInstall
  5. Do not change the installation location but record the installation directory, because you might need it to check drivers later. The directory will differ depending on your version of Windows and whether or not you are logged in as an administrator.
  6. You may be asked if you want to allow a program from an unknown publisher to make changes to this computer. Click on yes button.

In most cases, App Inventor should be able to locate the Setup software on its own. But if it asks for the location of the software, the path to enter is C:\Program Files\Appinventor\commands-for-Appinventor. If you are using a 64-bit machine (How to tell if you’re on 64-bit Windows), you should type Program Files (x86) rather than Program Files. Also, if you did not install the software as an administrator, it was installed in your local directory rather than in C:\Program Files. You’ll need to search for it to find the correct path name.

4.How to Update the MIT App Inventor

If you have previously been been using MIT App Inventor on this PC, you may need to update your MIT App Inventor.

This is required only if you are using the emulator or the USB cable. You do not need setup software if you are using just the wireless companion. To check whether you are running the latest version, visit the page MIT App Inventor 2 Connection Test.

Step By Step instruction on the Mac:

  1. Logout, or reboot your computer. (Important!)
  2. Download the new Mac installer package
  3. Install the new software you just downloaded. Do not change the installation directory from the default that the installer picks.

On Windows, you must install the setup software from an account that has administrator privileges in order for App Inventor to work. Installing via a non-administrator account is currently not supported.

Step By Step instruction on the Windows:

  1. Go to the Program Files directory and find the unistall program in the AppInventor Setup directory (installed with the previous setup software), and run uninstall.
  2. Reboot your computer. 
  3. Download the new Windows installer package.
  4. Install the new software you just downloaded. Do not change the installation directory from the default that the installer picks.
  5. Logout or Reboot your computer. You should see the aiStarter program running now.

Summary

We have learned how to setup MIT App Inventor 2 emulator on different OSes and how to update the MIT App Inventor.

AcoptexCom

Leave a Reply

Your email address will not be published.