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

Crystal Natal
Crystal Natal
70 Points

When I try to open the Android Studio it says the Android SDK is missing, out of date or is missing templates.

It also says "you can configure your SDK via Configure - Project Defaults - Project Structure - SDKs". Where do I find the SDK file?

1 Answer

Harry James
Harry James
14,780 Points

Hey Crystal!

If you don't have the Android SDK yet, you can go ahead and download it using the SDK Manager. To do this, click on the SDK Manager from the top toolbar:

Then, click on the checkmark next to the API that you want to download (Or, for a smaller download, just the SDK Platform for the API) and press Install. Once it completes, check back on Android Studio and it should now compile the code.

Please note that you will need to set the compileSdkVersion to the same version that you downloaded (Or a version that you already have on your system). You can do this in your build.gradle file for your app module.


Hope it helps and, if you have any more problems, give me a shout :)