How can I solve an error running the program using the emulator in App Inventor

There are other emulators you can get and connect to using Connect->Companion.

See