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

后端 未结 4 605
甜味超标
甜味超标 2021-01-07 22:35

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 i         


        
4条回答
  •  抹茶落季
    2021-01-07 23:32

    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.

提交回复
热议问题