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

Miles Torres
Miles Torres
2,316 Points

I can't get my AVD to work

Cannot reload AVD list: cvc-complex-type.2.4.d: Invalid content was found starting with element 'd:skin'. No child element is expected at this point. Error parsing C:\Users\MilesPC\AppData\Local\Android\android-studio\sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xml cvc-complex-type.2.4.d: Invalid content was found starting with element 'd:skin'. No child element is expected at this point. Error parsing C:\Users\MilesPC\AppData\Local\Android\android-studio\sdk\system-images\android-22\android-wear\x86\devices.xml cvc-complex-type.2.4.d: Invalid content was found starting with element 'd:skin'. No child element is expected at this point. Error parsing C:\Users\MilesPC\AppData\Local\Android\android-studio\sdk\system-images\android-23\android-wear\armeabi-v7a\devices.xml cvc-complex-type.2.4.d: Invalid content was found starting with element 'd:skin'. No child element is expected at this point. Error parsing C:\Users\MilesPC\AppData\Local\Android\android-studio\sdk\system-images\android-23\android-wear\x86\devices.xml cvc-complex-type.2.4.d: Invalid content was found starting with element 'd:skin'. No child element is expected at this point. Error parsing C:\Users\MilesPC\AppData\Local\Android\android-studio\sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xml cvc-complex-type.2.4.d: Invalid content was found starting with element 'd:skin'. No child element is expected at this point. Error parsing C:\Users\MilesPC\AppData\Local\Android\android-studio\sdk\system-images\android-22\android-wear\x86\devices.xml cvc-complex-type.2.4.d: Invalid content was found starting with element 'd:skin'. No child element is expected at this point. Error parsing C:\Users\MilesPC\AppData\Local\Android\android-studio\sdk\system-images\android-23\android-wear\armeabi-v7a\devices.xml cvc-complex-type.2.4.d: Invalid content was found starting with element 'd:skin'. No child element is expected at this point. Error parsing C:\Users\MilesPC\AppData\Local\Android\android-studio\sdk\system-images\android-23\android-wear\x86\devices.xm

Hi Miles

Are you trying to run an emulator for android watches?? if so it looks like yo need to reinstall the two android wear packages under Api 22 Android Wear, Simply go to top of your screen there should be a menu bar with icons on it 3rd icon from right should be a robot head with a blue box with a black arrow pointing down(SDK Manager) click on it. At the bottom of the popup window should be launch LAUNCH STANDALONE SDK MANAGER in blue, in this pop up window under API scroll down to API 22 there should be two files for android wear under android tv simply install the 2 files if it states there not installed. If they are installed uninstall them then reinstall by clicking in the check box. If it still does not work try installing all the files under API 22 as the emulator may need dependencies that are not installed under Api 22 yet.

Good Luck..

Miles Torres
Miles Torres
2,316 Points

No I'm trying to run the app on my phone but before i can even select a device to run it on the error popped up.

2 Answers

franmaguire
franmaguire
4,450 Points

Hi Miles,

I know that you are not developing on watches but it looks like android wear is installed and needs to be removed. Using the following menus, uncheck the android wear options, then click apply - Tools - Android - SDK Manager.

The following link has details about your issue and a screenshot of the menu on a mac (similar on windows) that you need to modify. click me stackoverflow link.

Best of luck,

Fran

Miles Torres
Miles Torres
2,316 Points

I tried to get to the SDK Manager but I get this error every time: ProcessNotCreatedException: Cannot run program "C:\Users\MilesPC\AppData\Local\Android\android-studio\sdk\tools\android.bat": CreateProcess error=2, The system cannot find the file specified: Cannot run program "C:\Users\MilesPC\AppData\Local\Android\android-studio\sdk\tools\android.bat": CreateProcess error=2, The system cannot find the file specified

Hi Miles

There was the same issue on treehouse 7months ago try pasting the below into your url and see if this helps.

https://teamtreehouse.com/community/processnotcreatedexception-cannot-find-file-sdktoolsandroidbat-wont-runlet-me-do-anything

Miles Torres
Miles Torres
2,316 Points

Everything is already in the right place and the SDK Manager wont even give me any errors.

Miles Torres
Miles Torres
2,316 Points

never mind I fixed it. thanks.