Android Studio: “SDK installation does not have the ”Extras > Android Support Repository“ installed” BUT IT HAS BEEN INSTALLED

旧城冷巷雨未停 提交于 2019-12-19 05:08:44

问题


I created Android Project but then I immediately get information that there have been errors.

Warning:(22, 12) Dependency on a support library, but the SDK installation does not have the "Extras > Android Support Repository" installed. Open the SDK manager and install it.

But I installed it, it was installed at the installation of Android Studio. I created another project and it happen again.


回答1:


This is bug https://code.google.com/p/android/issues/detail?id=68834 and will be fixed in 0.5.9. In the meantime you can ignore the warning.




回答2:


For me it was a very silly error and I spent the last two days trying to get around this. The path to the SDK in local.properties file was not properly escaped.

Change this:

# Location of the android SDK
sdk.dir=C:/Android/sdk

to this:

# Location of the android SDK
sdk.dir=C\:/Android/sdk

Refresh the gradle again.




回答3:


When you download Android Studio you have 0.5.2 version,There is a solution is to downgrade exactly to 0.5.4 and download from here : Android Studio 0.5.4

after download the file just drag and drop in the place where you installed Android studio 0.5.2




回答4:


Unfortunately, this bug appears to have resurfaced since it was last fixed. I have filed a new bug report to track it:

https://issuetracker.google.com/issues/37592307

Please "star" the bug report if it's affecting you.



来源:https://stackoverflow.com/questions/23683447/android-studio-sdk-installation-does-not-have-the-extras-android-support-re

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!