Unable to resolve dependency for ‘:app@debug/compileClasspath‘: Could not find any version that matc

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


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


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


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


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

分二步解决:

1、project structure:这里选择8.1,如图:

Unable to resolve dependency for ‘:app@debug/compileClasspath‘: Could not find any version that matc_第1张图片

 

2、在gradle中同步一样版本号(画框部分)后,再同步即可

 

Unable to resolve dependency for ‘:app@debug/compileClasspath‘: Could not find any version that matc_第2张图片

 

 

你可能感兴趣的:(Android,studio日常错误)