Could not find androidx.appcompat:appcompat:28.0.0

I updated compileSDkversion from 27 to 28.

Added in gradle.properties file:

android.useAndroidX=true
android.enableJetifier=true
in build gradle added:

implementation ‘androidx.appcompat:appcompat:1.0.2’
implementation ‘androidx.core:core:1.0.2’
Refactored support libraries to androidX libraries in build.gradle.

I’m getting a build error:

Could not find androidx.appcompat:appcompat:28.0.0
What is the problem? What else should I change?