Android studio报错Failed to resolve: com.android.support:appcompat-v7:29.+ Install Repository and sync

Android studio报错Failed to resolve: com.android.support:appcompat-v7:29.+ Install Repository and sync project Show in File Show in Project Structure dialog
Android studio报错Failed to resolve: com.android.support:appcompat-v7:29.+ Install Repository and sync
解决方法:
1.点击 AVD ManagerAndroid studio报错Failed to resolve: com.android.support:appcompat-v7:29.+ Install Repository and sync

2.选中Updates,查看Android SDK Tools版本
Android studio报错Failed to resolve: com.android.support:appcompat-v7:29.+ Install Repository and sync

3.双击第二个build.gradle,修改图中圈中的数据为Android SDK Tools版本25.2.5的整数 25
Android studio报错Failed to resolve: com.android.support:appcompat-v7:29.+ Install Repository and sync

4.修改图中圈中的数据为Android SDK Tools版本25.2.5

解决
Android studio报错Failed to resolve: com.android.support:appcompat-v7:29.+ Install Repository and sync