Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio says I don't have Android Support Repository, but I do

I updated Android Studio from 0.2 to 0.2.7 and now I can't use it. When I click on "New Project", click few times next, then finish, I get this error:

image

so I installed it through SDK manager, but I still keep getting that message! How can I fix this?

image

like image 794
Gintas_ Avatar asked Oct 21 '22 01:10

Gintas_


1 Answers

The SDK you used to download the Android Support Repository is external (F:\Android\sdk).

By default Android Studio uses it's own internal SDK, located in the \sdk sub-folder of the folder where Android Studio is installed.

In order to use your external SDK you have to configure Android Studio to use it.

Go to File -> Other Settings -> Default Project Structure.
Now add your required platform to the Platform Settings -> SDK section, making sure to use your exernal SDK's path (F:\Android\sdk).
Then set the default Project SDK to the added platform under Project Settings -> Project.

Edit:
If you want to use the bundled SDK manager, check out this answer for a solution.

like image 120
free3dom Avatar answered Oct 24 '22 09:10

free3dom