How Do I Fix This Error In Android Studio If I Have Already Added The Google Maven Repository?

I'm using Android Studio version 2.3.3 and Facing the Gradle Error. I have Added the Logcat Error Below..

I've tried several the solution on Stack Overflow which says add the Google Maven repository, but the error already persists. I'm adding the code below too:

Already added Maven repository by Google. Still does NOT work.

Error:(26, 13) Failed to resolve:
<a target="_blank" rel="nofollow noreferrer" href="install.m2.repo">Install Repository and sync project</a><br><a target="_blank" rel="nofollow noreferrer" href="openFile:C:/Users/Haris Usmani/AndroidStudioProjects/CabApp/app/build.gradle">Show in File</a><br><a target="_blank" rel="nofollow noreferrer" href="">Show in Project Structure dialog</a>

I expect gradle to build successfully but it does not do that. Instead it fails!



It happens because doesn't exist.

You can check the revision history.


Note: With the release of Android 9.0 (API level 28) there is a new version of the support library called AndroidX which is part of Jetpack. The AndroidX library contains the existing support library and also includes the latest Jetpack components.

You can continue to use the support library. Historical artifacts (those versioned 27 and earlier, and packaged as*) will remain available on Google Maven. However, all new library development will occur in the AndroidX library.

We recommend using the AndroidX libraries in all new projects. You should also consider migrating existing projects to AndroidX as well.