10

I've downloaded and installed Android Studio, the program loads (after setting the JDK env variable) but when i click on "New Project" i get this error :

Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later.

the android SDK is included with Android Studio in this location : C:\Program Files\Android\android-studio\sdk but it seems he dosen't find it,

android SDK or eclipse was not installed previously, anyone installed Android Studio and got/solved this error!!

Community
  • 1
  • 1
Chtioui Malek
  • 11,197
  • 1
  • 72
  • 69
  • do you have any environment variables set that are related to android? Maybe it looks at those before the installation directory. – John Leehey May 17 '13 at 00:24
  • no, it's a clean windows installation and i have not installed older android sdk or eclipse... – Chtioui Malek May 17 '13 at 00:26
  • First, check your JDK variable. Then, check this post >> http://stackoverflow.com/questions/16575988/android-studio-sdk-is-out-of-date-or-is-missing-templates – xShirase May 17 '13 at 00:28

1 Answers1

13

ok, here's how it worked:

I downloaded the Adt bundle and Copied the file "SDK Manager.exe" to the Android studio root directory and just executed it (this set the SDK environment variable to C:\Program Files\Android\android-studio\sdk).

then In Android studio clicked Configure ==> Project Defaults ==> Project Structure

then in the tab Project / Project SDK selected android SDK.

then in the tab SDKs / build target selected Android 4.2.2

Chtioui Malek
  • 11,197
  • 1
  • 72
  • 69