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:
- Open a Window Explorer and navigate to the folder where your Android SDK resides
- Run the Android AVD.exe program.
- In the Android Virtual Device Manager, select the desired emulator.
- 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.
- Open a Terminal
- Go to the directory your Android SDK is placed.
$ cd /home/user/android-sdk-linux/tools
- Launch the Android Virtual Device Manager.
$ ./android avd
- Select the desired emulator.
- Click Start.
Was this topic helpful?
Document Information
Modified date:
10 September 2020
UID
swg21673167