I am having this issue in Android studio.
Error:(22, 13) Failed to resolve: com.android.support:appcompat-v7:26.0.0 Install
If you already use jitpack.io or any repository. You can add google repository like this:
allprojects { repositories { maven { url "https://jitpack.io" } maven { url "https://maven.google.com" } } }