running Android Studio on Windows 7 fails, no Andr

2019-03-26 01:43发布

问题:

This question already has an answer here:

  • Android Studio installation on Windows 7 fails, no JDK found 29 answers

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!!

回答1:

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