saving . . . saved error has been deleted. error has been hidden .
error
Title
Question
Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:31.+.
Open File
Show Details


Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:31.+.
Open File
Show Details


Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:31.+.
Open File
Show Details


Unable to resolve dependency for ':app@release/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:31.+.
Open File
Show Details


Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:31.+.
Open File
Show Details


Android-app-using-Kotlin Getting-started-with-Hello-World-app 03-04 min 40-50 sec 03-11-21, 12:12 p.m. debgaurav070501@gmail.com

Answers:

Click on the File menu in the menu bar and Select Invalidate Caches/ Restart menu.

Close the project and open it again. Build the project one more time.

The below link might help you:
https://stackoverflow.com/questions/46999594/unable-to-resolve-dependency-for-appdebug-compileclasspath-could-not-resolv/48092108
12-11-21, 3:09 p.m. NirmalaVenkat


Log-in to answer to this question.