I’m attempting to write my first android app, HelloAndroid. The error in the title occurs whenever I try to run it on the emulator. This reliably happens with any AVD I create, and when I launch the AVD itself before running the app.
Edit:
Running the app on a real device works fine.
Also, running the emulator from command line with the -verbose option shows that the emulator hangs after the following:
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'back'.
(Using an AVD with or without the camera enabled has no effect.)
Here’s what I’m using for Android development:
- Windows 7 (64 bit)
- JDK 1.7.0
- Eclipse 3.7.1 (64 bit)
- Android SDK / AVD Manager, r16
- ADT Plugin 16.0.0
- AVD Manager
Here are potential solutions I’ve found on this site and others that I’ve tried so far (without success):
- Ensuring that there are no spaces in the path to the SDK (i.e., installing the SDK directly to the C:\ drive)
- Fresh install of Eclipse, Android SDK / AVD Manager, and the ADT plugin
- Running a 32 bit version of Eclipse
- Ensuring that Eclipse runs using the latest version of the JDK by changing the -vm path
- Changing the resolution of the AVD
- Deleting and re-creating an AVD
Any help would be greatly appreciated.
Edit: additional steps taken without success:
- Running Eclipse as an administrator
- Creating JAVA_HOME environment variable and setting value to path to JDK bin directory
- Using JDK 1.6 (for both eclipse and Windows)
- Running the emulator with no audio (recording or playback)
I’ve found the issue; it’s not a bug at all.
As it turns out, I had a program called ATI Tray Tools running in the background to manage my graphics card, and this was causing the error (and several other errors with other programs unrelated to Android development). Disabling this program solved the issue.
A very irritating and trivial problem… glad it’s fixed.
Thank you for your suggestions, everyone!