报错信息
Unable to resolve dependency for ‘:app@debug/compileClasspath’: Could not find any version that matches com.android.support:appcompat-v7:29.+.
Unable to resolve dependency for ‘:app@debugAndroidTest/compileClasspath’: Could not find any version that matches com.android.support:appcompat-v7:29.+.
Unable to resolve dependency for ‘:app@debugAndroidTest/compileClasspath’: Could not download junit.jar (junit:junit:4.12)
Unable to resolve dependency for ‘:app@debugUnitTest/compileClasspath’: Could not find any version that matches com.android.support:appcompat-v7:29.+.
Unable to resolve dependency for ‘:app@debugUnitTest/compileClasspath’: Could not download junit.jar (junit:junit:4.12)
Unable to resolve dependency for ‘:app@release/compileClasspath’: Could not find any version that matches com.android.support:appcompat-v7:29.+.
Unable to resolve dependency for ‘:app@releaseUnitTest/compileClasspath’: Could not find any version that matches com.android.support:appcompat-v7:29.+.
Unable to resolve dependency for ‘:app@releaseUnitTest/compileClasspath’: Could not download junit.jar (junit:junit:4.12)
根据这位老哥的方法
https://blog.csdn.net/ZFY11/article/details/94390570
解决掉5个error
再注释掉app/build.gradle中以下三行,gradle sync通过