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 Creating the Screen Layout Getting to Know Our Tools

Amber Doty
Amber Doty
1,264 Points

Error message -Failed to find target with hash string 'android-25' in C:\Program Files\android\SDK

Every time I try to install the missing platform I get denied, I've tried the link provided and it just won't work. I have Java downloaded as well.

Thank you :)

Simon Coates
Simon Coates
28,694 Points

I googled your error message in quotation marks, the top results were stackoverflow (always a good resource). it sounds like most people who had this error either had to use the Android SDK Manager to download the appropriate SDK for the version they want to use, or making modifications to build.gradle. Some users seemed to have luck with restarting android or doing a complete reinstall, after which android recognised their downloading of the sdk.

Amber Doty
Amber Doty
1,264 Points

It turned out the problem was a space between words in my file 'Program Files'... After changing it to 'Program-Files' everything was able to install. Thank you for your help!!

Simon Coates
Simon Coates
28,694 Points

It didn't like installing to C:\Program Files\ ? But most windows users would probably install it there. I guess if it makes the problem go away...

Amber Doty
Amber Doty
1,264 Points

That's why I was confused... I had to completely uninstall Android Studio, create a new folder C:\Android\ and install it there to fix the problem. The NDK would not run out of a folder that "contained white space" i.e. space in between words... ridiculous.