IBM Support

Android emulator does not start on Windows operating system

Troubleshooting


Problem

Attempts to run a Cordova project with Android platform support on an Android emulator on Micosoft Windows results in the project not being deployed on the emulator and a "TimeoutException" error appears.

Cause

This issue is related to Apache Cordova defect CB-5807.

Cordova 3.3.1-0.1.2, which has this defect, is the version delivered in Rational Application Developer for WebSphere Software (RAD) 9.1 and Rational Software Architect (RSA) 9.1.

RAD and RSA cannot start the Android emulator if it is not already started.

Diagnosing The Problem

If the TimeoutException appears, verify the version of Cordova used by the workspace in Window > Preferences > Cordova. If the version is 3.3.1-0.1.2, the workaround below is applicable to you.

Resolving The Problem

WORKAROUND:

Start the Android emulator prior to running the project on it.

On Windows:

  1. Open a Window Explorer and navigate to the folder where your Android SDK resides

  2. Run the Android AVD.exe program.

  3. In the Android Virtual Device Manager, select the desired emulator.

  4. Click Start.

Even though in Linux and Mac this problem is not present, it is highly recommended to have the emulator already started as well.

  1. Open a Terminal

  2. Go to the directory your Android SDK is placed.
    $ cd /home/user/android-sdk-linux/tools

  3. Launch the Android Virtual Device Manager.
    $ ./android avd

  4. Select the desired emulator.

  5. Click Start.

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Development","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Development","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 September 2020

UID

swg21673167