Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Failed to install Crystal Ball.apk on device 'emulator-5554!

There has only been 1 time that I have not gotten the below error out of about 15 tries.

[2014-01-18 17:25:00 - Crystal Ball] Installing Crystal Ball.apk... [2014-01-18 17:27:40 - Crystal Ball] Failed to install Crystal Ball.apk on device 'emulator-5554! [2014-01-18 17:27:40 - Crystal Ball] (null) [2014-01-18 17:27:40 - Crystal Ball] Launch canceled!

I can't seem to get anything done because of this. Does anyone know why?

3 Answers

I'm having the same problem with the apk failing to install. Any update on a fix?

EDIT: Figured it out. At the top of the graphic layout I didn't chose the AVD I had created. After selecting it the apk worked.

Chris Dziewa
Chris Dziewa
17,781 Points

Your response here just saved me a lot of headache. Thanks!

Ben,

I reinstalled the SDK from Google's site, saved on a different path, downloaded latest plugins and expanded the ADB timeout. I do not know what actually did it but it now works every time as long as I launch the emulator prior to launching the crystal ball app. Thanks for looking into it!

Great, glad to hear it Joe.

Post what it says in the DDMS Console window and all errors in the LogCat window.

You can open the DDMS window by going to your Console window, clicking the arrow next to the little monitor icon in the upper right of the window, and selecting DDMS.

You can open the LogCat window by going to the main Eclipse menu, selecting Show View -> Other, and then selecting LogCat (under the Android header) in the next window. In the LogCat window, change the dropdown so it says "Error" instead of "Verbose".

Is this what you're looking for?

These top 2 referred to application "com.android.calendar"

at android.content.CursorLoader.loadInBackground(CursorLoader.java:43)

at android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:301)

These 2 refer to application "system_process".

problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory)

Excessive delay setting brightness: 176ms, mask=2

Thank you and please let me know if I should provide anything else. It worked again today then failed the next 2 times I tried it so loading the crystal ball app is very inconsistent right now.

Please post the entire output from the DDMS console and from the LogCat errors. I know it's a lot of stuff, but a lot of the time there's something in there that says what the problem is.

One thing to be careful about is not to push the run button repeatedly. The emulator takes some time to load, and it sometimes gets corrupted if you push the run button once, think it's not doing anything, and then push it again. After you push the run button, you can see the progress of starting the emulator, installing the .apk, and running the program through the Console window.

Ok here goes. Please let me know if you can make sense of this and thanks in advance.

01-19 14:30:33.267: E/SurfaceFlinger(35): ro.sf.lcd_density must be defined as a build property 01-19 14:30:35.225: E/BandwidthController(32): runIptablesCmd(): failed /system/bin/iptables -N bw_INPUT res=768 01-19 14:30:35.324: E/BandwidthController(32): runIptablesCmd(): failed /system/bin/ip6tables -N bw_INPUT res=768 01-19 14:30:36.164: E/Trace(35): error opening trace file: No such file or directory (2) 01-19 14:30:36.985: E/Trace(102): error opening trace file: No such file or directory (2) 01-19 14:30:37.285: E/AudioMixer(38): unable to find downmix effect 01-19 14:30:39.416: E/BandwidthController(32): runIptablesCmd(): failed /system/bin/iptables -A bw_INPUT -i lo --jump RETURN res=768 01-19 14:30:39.595: E/BandwidthController(32): runIptablesCmd(): failed /system/bin/ip6tables -A bw_INPUT -i lo --jump RETURN res=768 01-19 14:30:39.608: E/Netd(32): Unable to bind netlink socket: No such file or directory 01-19 14:30:39.628: E/Netd(32): Unable to open quota2 logging socket 01-19 14:31:07.208: E/PhonePolicy(36): Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback 01-19 14:32:22.198: E/BatteryService(163): usbOnlinePath not found 01-19 14:32:22.247: E/BatteryService(163): batteryVoltagePath not found 01-19 14:32:22.286: E/BatteryService(163): batteryTemperaturePath not found 01-19 14:32:29.075: E/PowerManagerService-JNI(163): Couldn't load power module (No such file or directory) 01-19 14:33:32.425: E/PowerManagerService(163): Excessive delay setting brightness: 274ms, mask=2 01-19 14:33:34.685: E/SoundPool(163): error loading /system/media/audio/ui/Lock.ogg 01-19 14:33:34.685: E/SoundPool(163): error loading /system/media/audio/ui/Unlock.ogg 01-19 14:33:36.025: E/EventHub(163): could not get driver version for /dev/input/mouse0, Not a typewriter 01-19 14:33:36.025: E/EventHub(163): could not get driver version for /dev/input/mice, Not a typewriter 01-19 14:33:36.485: E/Trace(163): error opening trace file: No such file or directory (2) 01-19 14:33:39.974: E/VoldConnector(163): NDC Command {1 volume list} took too long (1371ms) 01-19 14:33:41.654: E/CommandListener(32): Failed to open /proc/sys/net/ipv6/conf/wlan0/disable_ipv6: No such file or directory 01-19 14:33:41.775: E/WifiStateMachine(163): Failed to disable IPv6: java.lang.IllegalStateException: command '1 interface ipv6 wlan0 disable' failed with '400 1 Failed to change IPv6 state (No such file or directory)' 01-19 14:33:42.767: E/MobileDataStateTracker(163): default: Ignoring feature request because could not acquire PhoneService 01-19 14:33:42.794: E/MobileDataStateTracker(163): default: Could not enable APN type "default" 01-19 14:34:01.595: E/Trace(223): error opening trace file: No such file or directory (2) 01-19 14:34:15.095: E/ThrottleService(163): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory) 01-19 14:34:16.815: E/NetdConnector(163): NDC Command {2 interface setthrottle rmnet0 -1 -1} took too long (743ms) 01-19 14:34:17.136: E/Trace(238): error opening trace file: No such file or directory (2) 01-19 14:34:19.305: E/Trace(253): error opening trace file: No such file or directory (2) 01-19 14:34:24.235: E/Trace(268): error opening trace file: No such file or directory (2) 01-19 14:35:01.965: E/SoundPool(163): error loading /system/media/audio/ui/Effect_Tick.ogg 01-19 14:35:02.048: E/SoundPool(163): error loading /system/media/audio/ui/Effect_Tick.ogg 01-19 14:35:02.107: E/SoundPool(163): error loading /system/media/audio/ui/Effect_Tick.ogg 01-19 14:35:02.205: E/SoundPool(163): error loading /system/media/audio/ui/Effect_Tick.ogg 01-19 14:35:03.155: E/SoundPool(163): error loading /system/media/audio/ui/Effect_Tick.ogg 01-19 14:35:03.225: E/SoundPool(163): error loading /system/media/audio/ui/KeypressStandard.ogg 01-19 14:35:03.298: E/SoundPool(163): error loading /system/media/audio/ui/KeypressSpacebar.ogg 01-19 14:35:03.445: E/SoundPool(163): error loading /system/media/audio/ui/KeypressDelete.ogg 01-19 14:35:03.555: E/SoundPool(163): error loading /system/media/audio/ui/KeypressReturn.ogg 01-19 14:35:11.105: E/Trace(295): error opening trace file: No such file or directory (2) 01-19 14:35:31.874: E/ActivityManager(163): ANR in com.android.systemui 01-19 14:35:31.874: E/ActivityManager(163): Reason: Executing service com.android.systemui/.SystemUIService 01-19 14:35:31.874: E/ActivityManager(163): Load: 8.11 / 3.63 / 1.47 01-19 14:35:31.874: E/ActivityManager(163): CPU usage from 0ms to 65984ms later: 01-19 14:35:31.874: E/ActivityManager(163): 41% 35/surfaceflinger: 32% user + 8.3% kernel / faults: 384 minor 01-19 14:35:31.874: E/ActivityManager(163): 19% 163/system_server: 12% user + 6.5% kernel / faults: 3408 minor 10 major 01-19 14:35:31.874: E/ActivityManager(163): 5.1% 223/com.android.systemui: 3.8% user + 1.3% kernel / faults: 1798 minor 3 major 01-19 14:35:31.874: E/ActivityManager(163): 4.2% 253/com.android.phone: 2.6% user + 1.5% kernel / faults: 2421 minor 12 major 01-19 14:35:31.874: E/ActivityManager(163): 3.9% 268/com.android.launcher: 2.6% user + 1.3% kernel / faults: 2733 minor 11 major 01-19 14:35:31.874: E/ActivityManager(163): 1.2% 33/debuggerd: 0.7% user + 0.4% kernel / faults: 1884 minor 01-19 14:35:31.874: E/ActivityManager(163): 1.6% 238/com.android.inputmethod.latin: 1.1% user + 0.5% kernel / faults: 1523 minor 11 major 01-19 14:35:31.874: E/ActivityManager(163): 1.4% 45/adbd: 0.1% user + 1.2% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.3% 137/logcat: 0.1% user + 0.2% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0% 34/rild: 0% user + 0% kernel / faults: 4 minor 01-19 14:35:31.874: E/ActivityManager(163): 0% 29/servicemanager: 0% user + 0% kernel / faults: 6 minor 01-19 14:35:31.874: E/ActivityManager(163): 0% 36/zygote: 0% user + 0% kernel / faults: 60 minor 01-19 14:35:31.874: E/ActivityManager(163): 0% 1//init: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0% 3/ksoftirqd/0: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0% 12/pdflush: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): +0% 295/com.android.settings: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 99% TOTAL: 72% user + 26% kernel + 0.4% irq + 0.4% softirq 01-19 14:35:31.874: E/ActivityManager(163): CPU usage from 49226ms to 61737ms later with 99% awake: 01-19 14:35:31.874: E/ActivityManager(163): 27% 35/surfaceflinger: 20% user + 7.3% kernel 01-19 14:35:31.874: E/ActivityManager(163): 34% 90/SurfaceFlinger: 29% user + 4.1% kernel 01-19 14:35:31.874: E/ActivityManager(163): 4% 98/VSyncThread: 0.8% user + 3.1% kernel 01-19 14:35:31.874: E/ActivityManager(163): 2.8% 101/Binder_1: 1% user + 1.7% kernel 01-19 14:35:31.874: E/ActivityManager(163): 1.7% 99/EventThread: 0.2% user + 1.5% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.6% 35/surfaceflinger: 0.1% user + 0.4% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.6% 162/Binder_2: 0% user + 0.5% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.4% 288/Binder_4: 0% user + 0.4% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.3% 202/Binder_3: 0% user + 0.3% kernel 01-19 14:35:31.874: E/ActivityManager(163): 12% 163/system_server: 7.2% user + 5.6% kernel / faults: 107 minor 01-19 14:35:31.874: E/ActivityManager(163): 8.3% 182/ActivityManager: 4.2% user + 4% kernel 01-19 14:35:31.874: E/ActivityManager(163): 3.8% 181/er.ServerThread: 2.9% user + 0.8% kernel 01-19 14:35:31.874: E/ActivityManager(163): 1.4% 170/Compiler: 0.8% user + 0.6% kernel 01-19 14:35:31.874: E/ActivityManager(163): 1.3% 195/WindowManager: 0.7% user + 0.5% kernel 01-19 14:35:31.874: E/ActivityManager(163): 1.1% 199/er$SensorThread: 0.7% user + 0.4% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.6% 180/SensorService: 0.3% user + 0.2% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.5% 179/Binder_3: 0.5% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.4% 286/Binder_4: 0.4% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.3% 163/system_server: 0% user + 0.2% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.3% 177/Binder_1: 0.2% user + 0.1% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.2% 316/Binder_6: 0% user + 0.2% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.1% 178/Binder_2: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.1% 305/Binder_5: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.1% 309/Thread-68: 0.1% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.1% 317/Binder_7: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0% 186/FileObserver: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0% 190/PackageMonitor: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0% 196/WindowManagerPo: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0% 248/LocationManager: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 6.1% 102/bootanimation: 5.3% user + 0.8% kernel 01-19 14:35:31.874: E/ActivityManager(163): 6.4% 116/BootAnimation: 5.5% user + 0.8% kernel 01-19 14:35:31.874: E/ActivityManager(163): 14% 295/com.android.settings: 9.9% user + 4.7% kernel / faults: 263 minor 2 major 01-19 14:35:31.874: E/ActivityManager(163): 9.7% 295/ndroid.settings: 6.9% user + 2.7% kernel 01-19 14:35:31.874: E/ActivityManager(163): 3.3% 303/Compiler: 1.9% user + 1.3% kernel 01-19 14:35:31.874: E/ActivityManager(163): 5.2% 223/com.android.systemui: 4.2% user + 1% kernel / faults: 241 minor 01-19 14:35:31.874: E/ActivityManager(163): 5.6% 223/ndroid.systemui: 4.5% user + 1% kernel 01-19 14:35:31.874: E/ActivityManager(163): 1% 231/Compiler: 0.7% user + 0.3% kernel 01-19 14:35:31.874: E/ActivityManager(163): 4.9% 253/com.android.phone: 3.7% user + 1.2% kernel / faults: 105 minor 1 major 01-19 14:35:31.874: E/ActivityManager(163): 5.1% 253/m.android.phone: 3.5% user + 1.6% kernel 01-19 14:35:31.874: E/ActivityManager(163): 1.2% 261/Compiler: 1% user + 0.1% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.1% 283/Binder_2: 0.1% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): +0% 324/AsyncQueryWorke: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.8% 45/adbd: 0% user + 0.8% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.4% 120/adbd: 0% user + 0.4% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.2% 45/adbd: 0% user + 0.2% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.1% 121/adbd: 0% user + 0.1% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.1% 137/logcat: 0% user + 0.1% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0% 3/ksoftirqd/0: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0% 12/pdflush: 0% user + 0% kernel 01-19 14:35:31.874: E/ActivityManager(163): 0.1% 268/com.android.launcher: 0% user + 0.1% kernel / faults: 4 minor 01-19 14:35:31.874: E/ActivityManager(163): 0.1% 318/AsyncTask #1: 0% user + 0.1% kernel 01-19 14:35:31.874: E/ActivityManager(163): 100% TOTAL: 67% user + 31% kernel + 0.7% irq + 0.8% softirq 01-19 14:35:32.615: E/InputDispatcher(163): channel '413e4ee8 RecentsPanel (server)' ~ Channel is unrecoverably broken and will be disposed! 01-19 14:35:35.037: E/InputDispatcher(163): Received spurious receive callback for unknown input channel. fd=184, events=0x9 01-19 14:35:37.368: E/Trace(326): error opening trace file: No such file or directory (2) 01-19 14:35:38.625: E/Trace(343): error opening trace file: No such file or directory (2) 01-19 14:35:44.045: E/ThrottleService(163): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory) 01-19 14:35:48.865: E/Trace(374): error opening trace file: No such file or directory (2) 01-19 14:35:54.305: E/Trace(389): error opening trace file: No such file or directory (2) 01-19 14:35:54.865: E/PowerManagerService(163): Excessive delay setting brightness: 802ms, mask=2 01-19 14:35:55.865: E/PowerManagerService(163): Excessive delay setting brightness: 483ms, mask=2 01-19 14:35:56.485: E/PowerManagerService(163): Excessive delay setting brightness: 552ms, mask=2 01-19 14:36:04.988: E/ActivityThread(238): Failed to find provider info for com.android.inputmethod.latin.dictionarypack 01-19 14:36:05.059: E/BinaryDictionaryGetter(238): Could not find a dictionary pack 01-19 14:36:09.507: E/ActivityManager(163): ANR in com.android.inputmethod.latin 01-19 14:36:09.507: E/ActivityManager(163): Reason: Executing service com.android.inputmethod.latin/.LatinIME 01-19 14:36:09.507: E/ActivityManager(163): Load: 8.64 / 4.17 / 1.72 01-19 14:36:09.507: E/ActivityManager(163): CPU usage from 0ms to 29032ms later: 01-19 14:36:09.507: E/ActivityManager(163): 30% 163/system_server: 18% user + 11% kernel / faults: 1975 minor 01-19 14:36:09.507: E/ActivityManager(163): 10% 326/android.process.acore: 7.8% user + 2.9% kernel / faults: 2697 minor 16 major 01-19 14:36:09.507: E/ActivityManager(163): 6.8% 343/com.android.systemui: 4.8% user + 1.9% kernel / faults: 1261 minor 01-19 14:36:09.507: E/ActivityManager(163): 5.8% 253/com.android.phone: 3.8% user + 2% kernel / faults: 394 minor 1 major 01-19 14:36:09.507: E/ActivityManager(163): 3.7% 238/com.android.inputmethod.latin: 2.6% user + 1% kernel / faults: 1004 minor 3 major 01-19 14:36:09.507: E/ActivityManager(163): 3.7% 45/adbd: 0.5% user + 3.1% kernel / faults: 32 minor 01-19 14:36:09.507: E/ActivityManager(163): 3.3% 36/zygote: 2.9% user + 0.4% kernel / faults: 271 minor 01-19 14:36:09.507: E/ActivityManager(163): 3.3% 268/com.android.launcher: 2.6% user + 0.7% kernel / faults: 305 minor 1 major 01-19 14:36:09.507: E/ActivityManager(163): 1.9% 35/surfaceflinger: 1.5% user + 0.3% kernel / faults: 750 minor 01-19 14:36:09.507: E/ActivityManager(163): 0.5% 38/mediaserver: 0.3% user + 0.1% kernel / faults: 9 minor 01-19 14:36:09.507: E/ActivityManager(163): 0.5% 295/com.android.settings: 0.3% user + 0.2% kernel / faults: 176 minor 1 major 01-19 14:36:09.507: E/ActivityManager(163): 0.4% 137/logcat: 0.1% user + 0.3% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.1% 34/rild: 0.1% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0% 29/servicemanager: 0% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0% 32/netd: 0% user + 0% kernel / faults: 10 minor 01-19 14:36:09.507: E/ActivityManager(163): 0% 1//init: 0% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): +0% 358/sh: 0% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): +0% 360/app_process: 0% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): +0% 374/com.android.contacts: 0% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): +0% 389/com.android.defcontainer: 0% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 100% TOTAL: 66% user + 32% kernel + 0.1% irq + 0.8% softirq 01-19 14:36:09.507: E/ActivityManager(163): CPU usage from 24762ms to 26910ms later: 01-19 14:36:09.507: E/ActivityManager(163): 44% 163/system_server: 25% user + 19% kernel / faults: 327 minor 01-19 14:36:09.507: E/ActivityManager(163): 21% 182/ActivityManager: 11% user + 10% kernel 01-19 14:36:09.507: E/ActivityManager(163): 6.4% 170/Compiler: 2.9% user + 3.4% kernel 01-19 14:36:09.507: E/ActivityManager(163): 4.4% 316/Binder_6: 4.4% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 4.4% 341/Binder_A: 1.9% user + 2.4% kernel 01-19 14:36:09.507: E/ActivityManager(163): 2.4% 165/GC: 1.4% user + 0.9% kernel 01-19 14:36:09.507: E/ActivityManager(163): 1.9% 305/Binder_5: 1.4% user + 0.4% kernel 01-19 14:36:09.507: E/ActivityManager(163): 1.9% 337/Binder_9: 1.4% user + 0.4% kernel 01-19 14:36:09.507: E/ActivityManager(163): 1.4% 177/Binder_1: 1.4% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.9% 163/system_server: 0.9% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.9% 317/Binder_7: 0.4% user + 0.4% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.9% 325/Binder_8: 0.4% user + 0.4% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.4% 178/Binder_2: 0.4% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.4% 179/Binder_3: 0.4% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.4% 286/Binder_4: 0% user + 0.4% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.4% 309/Thread-68: 0.4% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 21% 238/com.android.inputmethod.latin: 17% user + 3.6% kernel / faults: 132 minor 01-19 14:36:09.507: E/ActivityManager(163): 13% 238/putmethod.latin: 11% user + 1.6% kernel 01-19 14:36:09.507: E/ActivityManager(163): 4.8% 245/Compiler: 3.6% user + 1.2% kernel 01-19 14:36:09.507: E/ActivityManager(163): +0% 412/InitializeBinar: 0% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 17% 268/com.android.launcher: 14% user + 2.8% kernel / faults: 79 minor 1 major 01-19 14:36:09.507: E/ActivityManager(163): 13% 268/ndroid.launcher: 11% user + 1.7% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.3% 275/Compiler: 0.3% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 15% 253/com.android.phone: 10% user + 5.3% kernel / faults: 144 minor 01-19 14:36:09.507: E/ActivityManager(163): 12% 253/m.android.phone: 9% user + 3% kernel 01-19 14:36:09.507: E/ActivityManager(163): 5.3% 261/Compiler: 1.8% user + 3.4% kernel 01-19 14:36:09.507: E/ActivityManager(163): 2.2% 257/GC: 2.2% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.7% 324/AsyncQueryWorke: 0% user + 0.7% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.3% 342/AsyncTask #1: 0.3% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 1.4% 326/android.process.acore: 1.4% user + 0% kernel / faults: 21 minor 01-19 14:36:09.507: E/ActivityManager(163): 0.3% 326/d.process.acore: 0.3% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 0.3% 340/Binder_2: 0.3% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): +0% 413/Binder_3: 0% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): +0% 414/Binder_4: 0% user + 0% kernel 01-19 14:36:09.507: E/ActivityManager(163): 100% TOTAL: 67% user + 32% kernel 01-19 14:36:20.637: E/Trace(421): error opening trace file: No such file or directory (2) 01-19 14:36:32.637: E/Trace(436): error opening trace file: No such file or directory (2) 01-19 14:36:33.247: E/Trace(442): error opening trace file: No such file or directory (2) 01-19 14:36:49.317: E/ActivityThread(421): Failed to find provider info for com.android.inputmethod.latin.dictionarypack 01-19 14:36:49.877: E/BinaryDictionaryGetter(421): Could not find a dictionary pack 01-19 14:37:08.537: E/ActivityManager(163): ANR in com.android.systemui 01-19 14:37:08.537: E/ActivityManager(163): Reason: Executing service com.android.systemui/.SystemUIService 01-19 14:37:08.537: E/ActivityManager(163): Load: 11.62 / 5.91 / 2.48 01-19 14:37:08.537: E/ActivityManager(163): CPU usage from 0ms to 28706ms later: 01-19 14:37:08.537: E/ActivityManager(163): 27% 163/system_server: 18% user + 8.7% kernel / faults: 1847 minor 1 major 01-19 14:37:08.537: E/ActivityManager(163): 27% 465/procrank: 6.2% user + 20% kernel / faults: 212 minor 01-19 14:37:08.537: E/ActivityManager(163): 11% 343/com.android.systemui: 8.6% user + 3.1% kernel / faults: 2879 minor 2 major 01-19 14:37:08.537: E/ActivityManager(163): 10% 35/surfaceflinger: 9.2% user + 1.1% kernel / faults: 372 minor 01-19 14:37:08.537: E/ActivityManager(163): 8.7% 253/com.android.phone: 5.9% user + 2.8% kernel / faults: 782 minor 1 major 01-19 14:37:08.537: E/ActivityManager(163): 4.8% 421/com.android.inputmethod.latin: 3.5% user + 1.2% kernel / faults: 1603 minor 01-19 14:37:08.537: E/ActivityManager(163): 3.1% 442/android.process.media: 1.9% user + 1.2% kernel / faults: 855 minor 5 major 01-19 14:37:08.537: E/ActivityManager(163): 2.4% 45/adbd: 0.2% user + 2.2% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.9% 436/com.android.mms: 0.4% user + 0.5% kernel / faults: 379 minor 2 major 01-19 14:37:08.537: E/ActivityManager(163): 0.2% 137/logcat: 0.1% user + 0.1% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.2% 326/android.process.acore: 0.2% user + 0% kernel / faults: 13 minor 1 major 01-19 14:37:08.537: E/ActivityManager(163): 0.1% 34/rild: 0% user + 0.1% kernel / faults: 1 minor 01-19 14:37:08.537: E/ActivityManager(163): 0.1% 374/com.android.contacts: 0.1% user + 0% kernel / faults: 58 minor 01-19 14:37:08.537: E/ActivityManager(163): 0.1% 29/servicemanager: 0% user + 0% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0% 389/com.android.defcontainer: 0% user + 0% kernel / faults: 70 minor 01-19 14:37:08.537: E/ActivityManager(163): 100% TOTAL: 56% user + 42% kernel + 0.2% irq + 0.6% softirq 01-19 14:37:08.537: E/ActivityManager(163): CPU usage from 25465ms to 27158ms later: 01-19 14:37:08.537: E/ActivityManager(163): 35% 343/com.android.systemui: 29% user + 5.6% kernel / faults: 827 minor 01-19 14:37:08.537: E/ActivityManager(163): 28% 343/ndroid.systemui: 23% user + 5.1% kernel 01-19 14:37:08.537: E/ActivityManager(163): 7% 345/GC: 6.5% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 354/Binder_1: 0.4% user + 0% kernel 01-19 14:37:08.537: E/ActivityManager(163): 32% 465/procrank: 6.5% user + 25% kernel / faults: 24 minor 01-19 14:37:08.537: E/ActivityManager(163): 24% 163/system_server: 14% user + 10% kernel / faults: 36 minor 01-19 14:37:08.537: E/ActivityManager(163): 17% 182/ActivityManager: 8.3% user + 9.3% kernel 01-19 14:37:08.537: E/ActivityManager(163): 1.4% 170/Compiler: 0.9% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 1.4% 172/FinalizerDaemon: 1.4% user + 0% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.9% 199/er$SensorThread: 0.4% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.9% 317/Binder_7: 0.9% user + 0% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 177/Binder_1: 0% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 181/er.ServerThread: 0.4% user + 0% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 249/CountryDetector: 0.4% user + 0% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 286/Binder_4: 0% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 309/Thread-68: 0% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 341/Binder_A: 0.4% user + 0% kernel 01-19 14:37:08.537: E/ActivityManager(163): 3.7% 253/com.android.phone: 2.8% user + 0.9% kernel / faults: 18 minor 01-19 14:37:08.537: E/ActivityManager(163): 4.2% 253/m.android.phone: 3.2% user + 0.9% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.9% 293/RILSender: 0.9% user + 0% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 261/Compiler: 0.4% user + 0% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 279/Binder_1: 0% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 479/GsmDC-1: 0% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 480/SyncHandler-0: 0% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 1.8% 45/adbd: 1.4% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.9% 45/adbd: 0.9% user + 0% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 120/adbd: 0% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 121/adbd: 0% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 29/servicemanager: 0% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 35/surfaceflinger: 0.4% user + 0% kernel 01-19 14:37:08.537: E/ActivityManager(163): 0.4% 137/logcat: 0% user + 0.4% kernel 01-19 14:37:08.537: E/ActivityManager(163): 100% TOTAL: 46% user + 52% kernel + 0.6% irq + 1.2% softirq 01-19 14:37:08.970: E/InputDispatcher(163): channel '41516198 RecentsPanel (server)' ~ Channel is unrecoverably broken and will be disposed! 01-19 14:37:11.337: E/InputDispatcher(163): Received spurious receive callback for unknown input channel. fd=181, events=0x9 01-19 14:37:11.337: E/InputDispatcher(163): Received spurious receive callback for unknown input channel. fd=190, events=0x9 01-19 14:37:11.372: E/InputDispatcher(163): Received spurious receive callback for unknown input channel. fd=191, events=0x9 01-19 14:37:13.937: E/Trace(484): error opening trace file: No such file or directory (2) 01-19 14:37:58.788: E/ActivityManager(163): ANR in com.android.mms 01-19 14:37:58.788: E/ActivityManager(163): Reason: Broadcast of Intent { act=android.intent.action.BOOT_COMPLETED flg=0x10 cmp=com.android.mms/.transaction.MmsSystemEventReceiver } 01-19 14:37:58.788: E/ActivityManager(163): Load: 10.35 / 6.46 / 2.85 01-19 14:37:58.788: E/ActivityManager(163): CPU usage from 1ms to 22867ms later: 01-19 14:37:58.788: E/ActivityManager(163): 38% 163/system_server: 24% user + 13% kernel / faults: 1353 minor 01-19 14:37:58.788: E/ActivityManager(163): 20% 484/com.android.systemui: 15% user + 5.6% kernel / faults: 4689 minor 1 major 01-19 14:37:58.788: E/ActivityManager(163): 7.1% 35/surfaceflinger: 6.5% user + 0.6% kernel / faults: 18 minor 01-19 14:37:58.788: E/ActivityManager(163): 4.9% 253/com.android.phone: 2.8% user + 2.1% kernel / faults: 80 minor 01-19 14:37:58.788: E/ActivityManager(163): 2.9% 45/adbd: 0.2% user + 2.6% kernel 01-19 14:37:58.788: E/ActivityManager(163): 1.7% 436/com.android.mms: 0.7% user + 1% kernel / faults: 94 minor 1 major 01-19 14:37:58.788: E/ActivityManager(163): 1% 137/logcat: 0.2% user + 0.7% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0.7% 326/android.process.acore: 0.3% user + 0.3% kernel / faults: 476 minor 01-19 14:37:58.788: E/ActivityManager(163): 0.5% 374/com.android.contacts: 0.4% user + 0.1% kernel / faults: 47 minor 01-19 14:37:58.788: E/ActivityManager(163): 0.2% 29/servicemanager: 0.1% user + 0.1% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0% 4/events/0: 0% user + 0% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0% 34/rild: 0% user + 0% kernel 01-19 14:37:58.788: E/ActivityManager(163): 100% TOTAL: 65% user + 32% kernel + 0.1% irq + 1.4% softirq 01-19 14:37:58.788: E/ActivityManager(163): CPU usage from 20093ms to 21352ms later: 01-19 14:37:58.788: E/ActivityManager(163): 50% 484/com.android.systemui: 43% user + 7.3% kernel / faults: 884 minor 1 major 01-19 14:37:58.788: E/ActivityManager(163): 34% 484/ndroid.systemui: 29% user + 5.3% kernel 01-19 14:37:58.788: E/ActivityManager(163): 17% 485/GC: 17% user + 0% kernel 01-19 14:37:58.788: E/ActivityManager(163): 36% 163/system_server: 13% user + 22% kernel / faults: 94 minor 01-19 14:37:58.788: E/ActivityManager(163): 33% 182/ActivityManager: 10% user + 23% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0.8% 181/er.ServerThread: 0% user + 0.8% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0.8% 287/GpsLocationProv: 0.8% user + 0% kernel 01-19 14:37:58.788: E/ActivityManager(163): 1.6% 45/adbd: 0% user + 1.6% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0.8% 45/adbd: 0% user + 0.8% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0.8% 120/adbd: 0% user + 0.8% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0.8% 121/adbd: 0% user + 0.8% kernel 01-19 14:37:58.788: E/ActivityManager(163): 1.4% 253/com.android.phone: 0.7% user + 0.7% kernel / faults: 3 minor 01-19 14:37:58.788: E/ActivityManager(163): 1.4% 253/m.android.phone: 1.4% user + 0% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0.4% 374/com.android.contacts: 0.2% user + 0.2% kernel / faults: 11 minor 01-19 14:37:58.788: E/ActivityManager(163): 0.2% 408/AsyncTask #1: 0% user + 0.2% kernel 01-19 14:37:58.788: E/ActivityManager(163): +0% 498/AccountChangeLi: 0% user + 0% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0.6% 326/android.process.acore: 0.6% user + 0% kernel / faults: 76 minor 01-19 14:37:58.788: E/ActivityManager(163): 0.6% 403/ApplicationsPro: 0.6% user + 0% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0.6% 436/com.android.mms: 0% user + 0.6% kernel 01-19 14:37:58.788: E/ActivityManager(163): 0.6% 436/com.android.mms: 0% user + 0.6% kernel 01-19 14:37:58.788: E/ActivityManager(163): 100% TOTAL: 70% user + 28% kernel + 0.7% softirq 01-19 14:38:27.860: E/Trace(507): error opening trace file: No such file or directory (2) 01-19 14:38:37.008: E/Trace(526): error opening trace file: No such file or directory (2) 01-19 14:38:40.620: E/Trace(547): error opening trace file: No such file or directory (2) 01-19 14:38:43.127: E/Trace(565): error opening trace file: No such file or directory (2) 01-19 14:38:47.967: E/Trace(580): error opening trace file: No such file or directory (2) 01-19 14:38:52.317: E/Trace(607): error opening trace file: No such file or directory (2) 01-19 14:38:54.077: E/Trace(621): error opening trace file: No such file or directory (2) 01-19 14:39:10.887: E/Trace(645): error opening trace file: No such file or directory (2)

Try opening your emulator from the AVD Manager. To do that, open the Android Virtual Device Manager (it's one of the icons along the menu bar in Eclipse), highlight your device, and click Start. Does it open? If not, what error does it say in the window?

Yeah, it launched. What I don't understand is why it would work sometimes but not others. I can't seem to identify any trends yet. Also, after researching online it seems that a lot of people suggest changing the PATH environment variable. I don't feel comfortable doing that yet but do you know if that sounds right?

I don't think the PATH is the problem. If it was, it wouldn't work intermittently; it just wouldn't work. But it won't hurt anything if you want to try changing it. Just make sure you save the current value in case you need to change it back.

If you open the emulator through the AVD Manager and then run your program through Eclipse, it should launch on that emulator that is already open. Does that work? Give your emulator a few minutes to finish loading and to get to the Android home screen before you run your program.

Also, post a screenshot of your emulator configuration. You can get to the configuration through the AVD Manager. Highlight your emulator and click the Edit button.

I've been trying to get this to you for quite some time but after uninstalling and reinstalling I've somehow managed to make things a lot worse in the process. I'll have to start over and get back to you tomorrow. I'm getting the following errors and more:

Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level Git settings which might be configured in

Failed to load properties file for project 'CrystalBall'