Whenever you want to use the emulator or the USB cable, you need to make sure that aiStarter is running. It provides communication between App Inventor running in the browser, and other parts of App Inventor.
The aiStarter program is installed on your computer when you install the App Inventor Setup software.