Android Studio could not find any version that matches com.android.support:appcompat-v7:+

Running a project in Android Studio fails with this error: could not find any version that matches com.android.support:appcompat-v7:+

How can I fix this error?


Solution 1:

From Android Studio go to: Tools >> Android >> SDK Manager

Select and install "Extras|Android Support Repository"

Solution 2:

For me it worked after changing the version from 7:27.+ to 7:+