I am using android studio 3.1.4.
Error:Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0.1). Searched in the following loc
Adding google() to the build.gradle files uses this URL https://dl.google.com/dl/android/maven2/ which returns 404 at the moment.
(source: https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/dsl/RepositoryHandler.html#google--)
At the moment, the working URL is https://dl.google.com/dl/android/maven2/index.html You can reach it by replacing google() with this line
maven { url 'https://maven.google.com' }
in your build.gradle files.