Getting Error in Build FirstApp

Getting error:
**Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:30.+.**

while i am building the project for the first time.

In the above screenshot, as we can see “AppCompatActivity” is not imported, why is this dependency not being imported. I have good internet connection. Still i am getting the error.

Solved the problem by upgrading android studio to latest version 4.0.0. Deleted the previous project and created a new FirstApp project which automatically took latest dependencies from androidx and etc… Now AppCompatActivity is imported from different package from androidx.