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! While you're at it, check out some resources Treehouse students have shared here.

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 Build a Simple Android App (2014) Getting Started with Android Running the Fun Facts Project

The emulator doesn't run. Please help!

This is the error message:

Waiting for device. "C:\Users\HECTOR\Dropbox\Desktop\android-studio-bundle-windows (1)\android-studio\sdk\tools\emulator.exe" -avd android442 -netspeed full -netdelay none

PANIC: Could not open: android442

Am also having the same problem Please help Error:(12) Error parsing XML: not well-formed (invalid token) Error:(12) Execution failed for task ':app:processDebugResources'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command: D:\Users\msfuser\Desktop\Muzinda Hub Training\android-studio\sdk\build-tools\android-4.4W\aapt.exe package -f --no-crunch -I D:\Users\msfuser\Desktop\Muzinda Hub Training\android-studio\sdk\platforms\android-19\android.jar -M D:\Users\msfuser\AndroidStudioProjects\FunFacts\app\build\intermediates\manifests\debug\AndroidManifest.xml -S D:\Users\msfuser\AndroidStudioProjects\FunFacts\app\build\intermediates\res\debug -A D:\Users\msfuser\AndroidStudioProjects\FunFacts\app\build\intermediates\assets\debug -m -J D:\Users\msfuser\AndroidStudioProjects\FunFacts\app\build\generated\source\r\debug -F D:\Users\msfuser\AndroidStudioProjects\FunFacts\app\build\intermediates\libs\app-debug.ap_ --debug-mode --custom-package com.example.msfuser.funfacts -0 apk Error Code: 1 Output: D:\Users\msfuser\AndroidStudioProjects\FunFacts\app\build\intermediates\res\debug\layout\activity_fun_facts.xml:12: error: Error parsing XML: not well-formed (invalid token)

3 Answers

Johan Prieto
Johan Prieto
6,513 Points

Hello,

Have you tried to create another virtual device?

Thank you for your answer Johan! Yes, Iยดve already tried to create another virtual device but the error is the same.

Johan Prieto
Johan Prieto
6,513 Points

Hey, did you move any files around like your installation?

I didn't move any file after installation. But I think the issue was related to the location of "my desktop" folder (windows)... I moved that folder a year ago and AndroidStudio installation was using it to store some of the problematic files.

But I dont have the problem anymore, I downloaded the lastest android studio version from their website and followed a step by step guide to install it on my pc. I had to create additional variables to be able to change the default location of some files. (.android .gradle , etc)